Rename middleware to more "action" words.
This commit is contained in:
parent
d2aebd283e
commit
ca2f02284c
|
@ -4,7 +4,7 @@
|
|||
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\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…
Reference in New Issue