From ada43efd7507faed3d2e41a9eef98861391b944d Mon Sep 17 00:00:00 2001 From: Yuka Higashide Date: Thu, 18 Sep 2025 14:03:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A2=E3=82=A6=E3=83=88?= =?UTF-8?q?=E5=87=A6=E7=90=86=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/web.php | 7 +++++++ 1 file changed, 7 insertions(+) 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'); -- 2.47.3