From 3c405653775a72fc18bc2dc91a602c972d0beb8e Mon Sep 17 00:00:00 2001 From: Yuka Higashide Date: Wed, 8 Oct 2025 16:55:48 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/RegularContractCreateController.php | 2 +- routes/web.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/RegularContractCreateController.php b/app/Http/Controllers/RegularContractCreateController.php index d2f9100..5ee9b13 100644 --- a/app/Http/Controllers/RegularContractCreateController.php +++ b/app/Http/Controllers/RegularContractCreateController.php @@ -825,7 +825,7 @@ class RegularContractCreateController extends Controller ]); if ($validator->fails()) { - return back() + return redirect()->route('regular_contract.create_confirm_error', ['contract_id' => $contract_id]) ->withErrors($validator) ->withInput(); } diff --git a/routes/web.php b/routes/web.php index 9666548..ebf0752 100644 --- a/routes/web.php +++ b/routes/web.php @@ -125,6 +125,7 @@ Route::get('/regular-contract/upload_identity_success', [RegularContractCreateCo Route::get('/regular-contract/upload_identity_fail', [RegularContractCreateController::class, 'showUploadIdentityFail'])->name('regular_contract.upload_identity_fail'); Route::get('regular_contract/create_confirm', [RegularContractCreateController::class, 'createConfirm'])->name('regular_contract.create_confirm'); Route::post('/regular_contract/create_confirm_next/{contract_id}', [RegularContractCreateController::class, 'createConfirmNext'])->name('regular_contract.create_confirm_next'); +Route::get('/regular_contract/create_confirm_error/{contract_id}', [RegularContractCreateController::class, 'createConfirmNext'])->name('regular_contract.create_confirm_error'); Route::post('/regular_contract/create_select_period', [RegularContractCreateController::class, 'selectPeriod'])->name('regular_contract.create_select_period'); // 定期契約更新