How to Fix Laravel HTTPS Redirect Loop on Amazon Elastic Beanstalk/Load Balancer/Proxy

If you are forcing HTTPS on routes in Laravel but are having issues with a redirect loop and your app is behind a proxy, load balancer, or something like Elastic Beanstalk, try adding this to your .htaccess file: #Fixes HTTPS Redirect Loop SetEnvIfNoCase X-FORWARDED-PROTO “^https$” HTTPS Many load balancers will accept HTTPS traffic and forward […]

How to Get Laravel Task Scheduling Working on AWS Elastic Beanstalk Cron

We use AWS Elastic Beanstalk for quite a few projects and its’ rapid deployment models make it indispensable. Laravel 5 (5.1) includes a powerful Task Scheduling model that can be used to automate any part of your Laravel application using just one cron that runs an artisan command. If you’re setting environment variables directly through […]