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

Rename auth middlewares.

parent 93b9415c
...@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard; ...@@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Routing\Middleware; use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Contracts\Routing\ResponseFactory; use Illuminate\Contracts\Routing\ResponseFactory;
class LoggedIn implements Middleware { class Authenticated implements Middleware {
/** /**
* The Guard implementation. * The Guard implementation.
......
...@@ -4,7 +4,7 @@ use Closure; ...@@ -4,7 +4,7 @@ use Closure;
use Illuminate\Contracts\Auth\Guard; use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Routing\Middleware; use Illuminate\Contracts\Routing\Middleware;
class LoggedInWithBasicAuth implements Middleware { class AuthenticatedWithBasicAuth implements Middleware {
/** /**
* The Guard implementation. * The Guard implementation.
......
...@@ -22,8 +22,8 @@ class RouteServiceProvider extends ServiceProvider { ...@@ -22,8 +22,8 @@ class RouteServiceProvider extends ServiceProvider {
* @var array * @var array
*/ */
protected $middleware = [ protected $middleware = [
'auth' => 'App\Http\Middleware\LoggedIn', 'auth' => 'App\Http\Middleware\Authenticated',
'auth.basic' => 'App\Http\Middleware\LoggedInWithBasicAuth', 'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
'csrf' => 'App\Http\Middleware\VerifyCsrfToken', 'csrf' => 'App\Http\Middleware\VerifyCsrfToken',
'guest' => 'App\Http\Middleware\IsGuest', '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