Commit 2542829d authored by Taylor Otwell's avatar Taylor Otwell

Rename auth middlewares.

parent 93b9415c
......@@ -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',
];
......
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