Reputation: 1151
i got error "token mismatch exception" only on local machine, on production server is ok. In head index file i put this:
<meta name="csrf-token" content="{!! csrf_token() !!}">
and under form open tag:
{!!csrf_field()!!}
Upvotes: 1
Views: 1050
Reputation: 11
you can comment the line \App\Http\Middleware\VerifyCsrfToken::class, token in kernel.php or either check your routes list is coming using PHP this command
artisan route:list
Upvotes: 1
Reputation: 5896
Try to generate new api key on your localhost:
php artisan key:generate
Cheers!
Upvotes: 0