In this series of articles we will see how to create and deploy a production-ready Laravel application on AWS Fargate. In the first part, we will create a fully-working application with some controllers, some entities, some forms, some views, some tests, some assets and some migrations. In the second part, we will see how tocreate all the components required to deploy our application on AWS (CI/CD, auto-scaling, load-balancing, SSL, CDN…
To do this, we will save our sessions in our database and we will send our logs to the standard output.
To do this, we will update the App\Http\Middleware\TrustProxies middleware that is included in our Laravel application: https://laravel.com/docs/7.x/requests#configuring-trusted-proxies