Commit ca2f0228 authored by Taylor Otwell's avatar Taylor Otwell

Rename middleware to more "action" words.

parent d2aebd28
......@@ -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',
];
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment