Página expira en Laravel
<meta name="csrf-token" content="{{ csrf_token() }}">
//if not work
composer dump-autoload
Xerothermic Xenomorph
<meta name="csrf-token" content="{{ csrf_token() }}">
//if not work
composer dump-autoload
<meta name="csrf-token" content="{{ csrf_token() }}">
$this->renderable(function (\Exception $e) {
if ($e->getPrevious() instanceof \Illuminate\Session\TokenMismatchException) {
return redirect()->route('login');
};
});
I have solved the session problem (419-page Expire) session as a database. I think it would be helpful.
Change .env variable to
SESSION_DRIVER=database
SESSION_LIFETIME=120
run this commands:
php artisan session:table
php artisan cache:clear
php artisan migrate