Three file types available for upload
- business_logo (for the business)
- profile_picture (for the app users)
- member_picture (for members added to a business)
Send request to generate presigned url
| #!/bin/bash | |
| sudo yum update -y | |
| sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2 | |
| sudo yum install -y httpd mariadb-server | |
| sudo systemctl start httpd | |
| sudo systemctl enable httpd | |
| sudo chkconfig httpd on | |
| # Set file permissions for the Apache web server | |
| sudo groupadd www | |
| sudo usermod -a -G www ec2-user |
| namespace App\Http\Middleware; | |
| use Illuminate\Support\Facades\Log; | |
| class LogAfterRequest { | |
| public function handle($request, \Closure $next) | |
| { | |
| return $next($request); | |
| } |
| #!/bin/bash | |
| laravel new $1 | |
| cd $1 | |
| composer install | |
| yarn install | |
| touch README.md | |
| cp .env.example .env | |
| git init | |
| git add -A |