419 (unknown status) laravel code example
Example 1: HTTP call status: 419
Use this in the head section:
<meta name="csrf-token" content="{{ csrf_token() }}">
and get the csrf token in ajax:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
Example 2: 413 error laravel
// Need to increase or set client_max_body_size in your nginx config file.
http {
#...
client_max_body_size 100m;
#...
}
// Restart nginx