diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 62c91ee..fdb1f26 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -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' => [ diff --git a/routes/web.php b/routes/web.php index bab30fc..f427bf9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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'); });