-1

I dev laravel 5.4 on windows 10 with xampp (Apache + PHP 5.6.28) and I move my project to MacBook and I using Mamp pro (Apache + PHP 5.6.28).

I have a problem,Can't POST Request all form action.

It's show, TokenMismatchException in VerifyCsrfToken.php (line 68) .....

I try,

  • Composer update
  • remove all file in session
  • php artisan cache:clear
  • browser clear cache

but can't resolve.

How can I do ?

  • Possible duplicate of [Laravel TokenMismatchException](https://stackoverflow.com/questions/31427840/laravel-tokenmismatchexception) –  Dec 03 '17 at 22:04

1 Answers1

0

add csrf token in your form.

<form>
  {{ csrf_field() }}

</form>

Here is documentation about csrf protection.

Also you can use laravelcollective forms. They have csrf protection by default. You can easly install this package from here