'consumables', 'middleware' => ['auth']], function () { Route::get( '{consumablesID}/checkout', [Consumables\ConsumableCheckoutController::class, 'create'] )->name('checkout/accessory'); Route::post( '{consumablesID}/checkout', [Consumables\ConsumableCheckoutController::class, 'store'] )->name('checkout/accessory'); }); Route::resource('consumables', Consumables\ConsumablesController::class, [ 'middleware' => ['auth'], 'parameters' => ['consumable' => 'consumable_id'], ]);