diff --git a/routes/web.php b/routes/web.php index 270edd2..3f90ec6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -60,6 +60,13 @@ Route::post('/swo7_2',[InquiryConfirmController::class, 'confirm'])->name('swo7_ Route::post('/swo7_3',[InquiryConfirmController::class, 'complete'])->name('swo7_3'); Route::post('/swo8_3', [PasswordReminderController::class, 'sendMail'])->name('swo8_3'); +// ログアウト処理 +Route::get('/logout', function () { + // セッション全削除 + session()->flush(); + return redirect()->route('swo1_1'); +})->name('logout'); + // ログイン画面へのリダイレクト Route::get('/login', function () { return redirect()->route('swo8_1');