Skip to content

Commit

Permalink
Enable user-based middleware
Browse files Browse the repository at this point in the history
These will become available in the RainLab.User v3 coming shortly
  • Loading branch information
daftspunk committed Apr 16, 2024
1 parent 804d300 commit 60f7f95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Foundation/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class Kernel extends HttpKernel
* @var array
*/
protected $routeMiddleware = [
// 'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
// 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
// 'can' => \Illuminate\Auth\Middleware\Authorize::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
// 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
];
Expand Down Expand Up @@ -79,9 +79,9 @@ class Kernel extends HttpKernel
protected $middlewarePriority = [
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
// \Illuminate\Auth\Middleware\Authenticate::class,
// \Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\Auth\Middleware\Authenticate::class,
\Illuminate\Session\Middleware\AuthenticateSession::class,
\Illuminate\Routing\Middleware\SubstituteBindings::class,
// \Illuminate\Auth\Middleware\Authorize::class,
\Illuminate\Auth\Middleware\Authorize::class,
];
}

0 comments on commit 60f7f95

Please sign in to comment.