From efc9a8e2c9c105fb6de39863c6b8ddb7e4526998 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Fri, 24 Sep 2021 11:38:07 -0500 Subject: [PATCH] Fixes route not defined exception on components and consumables --- routes/web/components.php | 8 ++++---- routes/web/consumables.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routes/web/components.php b/routes/web/components.php index 08c8533f5ff7..2cff63e65527 100644 --- a/routes/web/components.php +++ b/routes/web/components.php @@ -8,22 +8,22 @@ Route::get( '{componentID}/checkout', [Components\ComponentCheckoutController::class, 'create'] - )->name('checkout/accessory'); + )->name('checkout/component'); Route::post( '{componentID}/checkout', [Components\ComponentCheckoutController::class, 'store'] - )->name('checkout/accessory'); + )->name('checkout/component'); Route::get( '{componentID}/checkin/{backto?}', [Components\ComponentCheckinController::class, 'create'] - )->name('checkout/accessory'); + )->name('checkout/component'); Route::post( '{componentID}/checkin/{backto?}', [Components\ComponentCheckinController::class, 'store'] - )->name('checkout/accessory'); + )->name('checkout/component'); }); diff --git a/routes/web/consumables.php b/routes/web/consumables.php index b4359be2edce..17e59df8aa08 100644 --- a/routes/web/consumables.php +++ b/routes/web/consumables.php @@ -9,12 +9,12 @@ Route::get( '{consumablesID}/checkout', [Consumables\ConsumableCheckoutController::class, 'create'] - )->name('checkout/accessory'); + )->name('checkout/consumable'); Route::post( '{consumablesID}/checkout', [Consumables\ConsumableCheckoutController::class, 'store'] - )->name('checkout/accessory'); + )->name('checkout/consumable'); });