Laravel PostTooLargeException in ValidatePostSize.php

File uploads goes via POST request, so value of upload_max_filesize must not be greater than post_max_size and you got opposite.

One of the issues is that the Laravel php artisan serve local development server uses the php.ini under php/cli instead of under php/apache2

So if you are having this issue while developing with php artisan serve, go and fetch the php.ini that’s under the /etc/php[version]/cli/ folder.