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

后端 未结 17 3223
你的背包
你的背包 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 05:53

    I had the same issue and it was because I was using virtualhost and I setup below variable to mydomain.com. in config/session.php file

    'domain' => env('SESSION_DOMAIN', 'mydomain.com'),
    

    When I changed it to null then it started working

    'domain' => env('SESSION_DOMAIN', 'null'),
    

    I don't know what is the reason behind it but it is working fine now.

提交回复
热议问题