xxxxxxxxxx
// Need to increase or set client_max_body_size in your nginx config file.
http {
#...
client_max_body_size 100m;
#...
}
// Restart nginx
xxxxxxxxxx
There is a way to override this view. All you need to do is
create 419.blade.php file inside the resources/views/errors folder.
If you need to find the Laravel`s default 419.blade.php file , you can publish
vendor files:
php artisan vendor:publish --tag=laravel-errors
xxxxxxxxxx
abort(419, 'Authentication Timeout');
// OR
return redirect()->route('login')->withErrors([
'message' => 'Authentication Timeout',
]);