2016-12-15 04:12:18 -08:00
|
|
|
<?php
|
|
|
|
|
2021-06-10 13:17:14 -07:00
|
|
|
use App\Http\Controllers\Consumables;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2016-12-15 04:12:18 -08:00
|
|
|
|
2021-06-12 01:05:20 -07:00
|
|
|
|
|
|
|
Route::group(['prefix' => 'consumables', 'middleware' => ['auth']], function () {
|
|
|
|
Route::get(
|
|
|
|
'{consumablesID}/checkout',
|
2021-06-12 01:35:29 -07:00
|
|
|
[Consumables\ConsumableCheckoutController::class, 'create']
|
2021-09-24 09:38:07 -07:00
|
|
|
)->name('checkout/consumable');
|
2021-06-12 01:05:20 -07:00
|
|
|
|
|
|
|
Route::post(
|
|
|
|
'{consumablesID}/checkout',
|
|
|
|
[Consumables\ConsumableCheckoutController::class, 'store']
|
2021-09-24 09:38:07 -07:00
|
|
|
)->name('checkout/consumable');
|
2021-06-12 01:05:20 -07:00
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::resource('consumables', Consumables\ConsumablesController::class, [
|
|
|
|
'middleware' => ['auth'],
|
|
|
|
'parameters' => ['consumable' => 'consumable_id'],
|
|
|
|
]);
|