name('home'); Route::get('/ledamot', PersonSearch::class)->name('person.search'); Route::get('/ledamot/{personId}', PersonShow::class)->name('person.show'); Route::get('/motion', MotionSearch::class)->name('motion.search'); Route::get('/motion/{motionId}', MotionShow::class)->name('motion.show'); Route::view('dashboard', 'dashboard') ->middleware(['auth', 'verified']) ->name('dashboard'); Route::middleware(['auth'])->group(function () { Route::redirect('settings', 'settings/profile'); Route::get('settings/profile', Profile::class)->name('profile.edit'); Route::get('settings/password', Password::class)->name('user-password.edit'); Route::get('settings/appearance', Appearance::class)->name('appearance.edit'); Route::get('settings/two-factor', TwoFactor::class) ->middleware( when( Features::canManageTwoFactorAuthentication() && Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'), ['password.confirm'], [], ), ) ->name('two-factor.show'); });