I have my backend on a default php elastic beanstalk instance on AWS and was wondering how do I increase the post_max_size and upload_file_size limit. I've tried on my local machine but the Laravel ValidatePostSize middleware says that its still 8M not 100M, but even if I change my local how do I change my elastic beanstalk instance.
If you deployed your app via the console, then follow these steps to change your elastic beanstalk app to a new version via the console:
Zip your development environment (with the increased limits on post_max_size and upload_file_size). This should be the same code base that was initially released.
Open the Elastic Beanstalk console.
Navigate to the management page for your environment.
Choose Upload and Deploy.
Choose Browse to select the application source bundle you zipped in step 1.
Type a unique Version label to represent the new application version. (ie 'Laravel-increased-limits')
Choose Deploy.
Reference the official AWS instructions here.