middleware(['web', 'guest'])->group(function ($router) { $router->get('/login', LoginForm::class)->name('login'); }); } }