I have this action in controler
public function upload() {
// getting all of the post data
$file = array(\'image\' => Input::file(\'image\'));
/
For laravel apps running on nginx..
Identify your php ini file:
php -i | grep php.ini
Edit both the cli and the fpm files to be sure:
vim /etc/php/7.2/cli/php.ini
vim /etc/php/7.2/fpm/php.ini
Change these to your prefered limits:
post_max_size = 1G
upload_max_filesize = 1G
memory_limit = 1G
Restart php fpm
service php7.2-fpm restart
Reload nginx
service nginx reload