Fixes route not defined exception on components and consumables

This commit is contained in:
Ivan Nieto Vivanco 2021-09-24 11:38:07 -05:00
parent 7f41bdf0b0
commit efc9a8e2c9
2 changed files with 6 additions and 6 deletions

View file

@ -8,22 +8,22 @@ Route::group(['prefix' => 'components', 'middleware' => ['auth']], function () {
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');
});

View file

@ -9,12 +9,12 @@ Route::group(['prefix' => 'consumables', 'middleware' => ['auth']], function ()
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');
});