Skip to content

Commit 7762134

Browse files
committed
Update class references
Use the class constant syntax as in the code of Laravel 5.1
1 parent 8038f94 commit 7762134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ If you would like to assign middleware to specific routes, you should first assi
108108
// Within App\Http\Kernel Class...
109109

110110
protected $routeMiddleware = [
111-
'auth' => 'App\Http\Middleware\Authenticate',
112-
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
113-
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
111+
'auth' => \App\Http\Middleware\Authenticate::class,
112+
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
113+
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
114114
];
115115

116116
Once the middleware has been defined in the HTTP kernel, you may use the `middleware` key in the route options array:

0 commit comments

Comments
 (0)