mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Rename auth middlewares.
This commit is contained in:
parent
93b9415cd0
commit
2542829d84
@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
|
||||
use Illuminate\Contracts\Routing\Middleware;
|
||||
use Illuminate\Contracts\Routing\ResponseFactory;
|
||||
|
||||
class LoggedIn implements Middleware {
|
||||
class Authenticated implements Middleware {
|
||||
|
||||
/**
|
||||
* The Guard implementation.
|
@ -4,7 +4,7 @@ use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
use Illuminate\Contracts\Routing\Middleware;
|
||||
|
||||
class LoggedInWithBasicAuth implements Middleware {
|
||||
class AuthenticatedWithBasicAuth implements Middleware {
|
||||
|
||||
/**
|
||||
* The Guard implementation.
|
@ -22,8 +22,8 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
'auth' => 'App\Http\Middleware\LoggedIn',
|
||||
'auth.basic' => 'App\Http\Middleware\LoggedInWithBasicAuth',
|
||||
'auth' => 'App\Http\Middleware\Authenticated',
|
||||
'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
|
||||
'csrf' => 'App\Http\Middleware\VerifyCsrfToken',
|
||||
'guest' => 'App\Http\Middleware\IsGuest',
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user