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
try this one in your global handler app/Exceptions/Handler.php
public function render($request, Exception $e) { if ($e instanceof \Illuminate\Session\TokenMismatchException) { return redirect('/login'); } return parent::render($request, $e); }