My laravel version was 5.5, and didn't have any errors in my application.
When I upgraded my laravel version to 5.6, the laravel TokenMisMatchException
is occurring. I have set csrf
in meta
, ajaxSetup
and html form
.
I tried find solution on stackoverflow but I find just ajaxSetup
.
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
but I set this now