Skip to content

Commit

Permalink
feat: enable can Laravel middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 15, 2022
1 parent 0e46ec4 commit 95c013f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Ship/Kernels/HttpKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ class HttpKernel extends LaravelHttpKernel
'auth' => Authenticate::class,
// 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'cache.headers' => SetCacheHeaders::class,
// Note: This middleware is disabled because Authorization functionality is provided by the Authorization container.
// 'can' => \Illuminate\Auth\Middleware\Authorize::class,
'can' => Authorize::class,
// Note: The "guest" middleware is registered by MiddlewareServiceProvider in Authentication Container
// 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'password.confirm' => RequirePassword::class,
Expand Down

0 comments on commit 95c013f

Please sign in to comment.