I tried to do the custom POST request in Laravel without form, therefore I get error:
TokenMismatchException in VerifyCsrfToken.php line 68:
So, how can I fix it?
I tried to do the custom POST request in Laravel without form, therefore I get error:
TokenMismatchException in VerifyCsrfToken.php line 68:
So, how can I fix it?
Add this to the form in your view:
<input type="hidden" name="_token" value="{{ csrf_token() }}">
It should solve this.