mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Rename middleware to more "action" words.
This commit is contained in:
parent
d2aebd283e
commit
ca2f02284c
@ -4,7 +4,7 @@ use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
use Illuminate\Contracts\Routing\Middleware;
|
||||
|
||||
class Authenticated implements Middleware {
|
||||
class Authenticate implements Middleware {
|
||||
|
||||
/**
|
||||
* The Guard implementation.
|
@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Contracts\Routing\Middleware;
|
||||
|
||||
class IsGuest implements Middleware {
|
||||
class RedirectIfAuthenticated implements Middleware {
|
||||
|
||||
/**
|
||||
* The Guard implementation.
|
@ -11,9 +11,9 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
* @var array
|
||||
*/
|
||||
protected $middleware = [
|
||||
'auth' => 'App\Http\Middleware\Authenticated',
|
||||
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticatedWithBasicAuth',
|
||||
'guest' => 'App\Http\Middleware\IsGuest',
|
||||
'auth' => 'App\Http\Middleware\Authenticate',
|
||||
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
|
||||
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
|
||||
];
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user