Middleware de compras andando

This commit is contained in:
Alejandro Tasistro 2024-09-10 20:23:49 -03:00
parent 9f6f36e2e6
commit 9259248caf
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ class Kernel extends HttpKernel
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
\App\Http\Middleware\Compras::class,
],
'api' => [

View File

@ -76,6 +76,6 @@ Route::middleware('auth')->group( function() {
});
});
Route::middleware(['auth', 'comi_compras'])->group( function() {
Route::middleware(['auth', 'compras'])->group( function() {
Route::get('/compras/pedidos', 'ComprasController@pedidos')->name('compras.pedidos');
});