Browse Source

Rename auth middlewares.

Taylor Otwell 10 years ago
parent
commit
2542829d84

+ 1 - 1
app/Http/Middleware/LoggedIn.php → app/Http/Middleware/Authenticated.php

@@ -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.

+ 1 - 1
app/Http/Middleware/LoggedInWithBasicAuth.php → app/Http/Middleware/AuthenticatedWithBasicAuth.php

@@ -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.

+ 2 - 2
app/Providers/RouteServiceProvider.php

@@ -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',
 	];