I just created a new project of laravel version 5.5 with the laravel installer.And run the command \"php artisan make:auth\".The views and controller are generated
if you created a new project localhost You need view config/session line : 166 if 'secure' => true , you need edit 'secure' => false, When you up the host or server, re-config => true sorry i know a little english , hope can help you
I had this same issue.
vagrant reload --provision worked for me
Had this issue as well! Solved it by:
php artisan cache:clearstorage/framework/sessions folder was empty, except for the .gitignore.I would also keep csrf_token in a meta tag.
<meta name="csrf-token" content="{{ csrf_token() }}">
In my case, I've got the same error message and then figured that I missed to add csrf_token
{{ csrf_field() }}
Or without form helper that will be,
<input type="hidden" name="_token" value="{{ csrf_token() }}">
If that doesn't work, then-
Refresh the browser cache and hopefully it will work, thanks.
Add this code in your
app\Exceptions\Handler.php file
if ($exception instanceof \Illuminate\Session\TokenMismatchException) {
// Perform operation on page expired
}