Laravel 5.5 login and register page says:The page has expired due to inactivity.[TokenMismatchException]

后端 未结 17 3209
你的背包
你的背包 2020-12-09 05:11

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

17条回答
  •  伪装坚强ぢ
    2020-12-09 06:02

    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,

    
    

    If that doesn't work, then-

    Refresh the browser cache and hopefully it will work, thanks.

提交回复
热议问题