|
@@ -12,12 +12,12 @@ class Kernel extends HttpKernel
|
|
* @var array
|
|
* @var array
|
|
*/
|
|
*/
|
|
protected $middleware = [
|
|
protected $middleware = [
|
|
- 'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
|
|
|
- 'Illuminate\Cookie\Middleware\EncryptCookies',
|
|
|
|
- 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
|
|
|
|
- 'Illuminate\Session\Middleware\StartSession',
|
|
|
|
- 'Illuminate\View\Middleware\ShareErrorsFromSession',
|
|
|
|
- 'App\Http\Middleware\VerifyCsrfToken',
|
|
|
|
|
|
+ \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
|
|
|
+ \Illuminate\Cookie\Middleware\EncryptCookies::class,
|
|
|
|
+ \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
+ \Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
+ \Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
+ \App\Http\Middleware\VerifyCsrfToken::class,
|
|
];
|
|
];
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -26,8 +26,8 @@ class Kernel extends HttpKernel
|
|
* @var array
|
|
* @var array
|
|
*/
|
|
*/
|
|
protected $routeMiddleware = [
|
|
protected $routeMiddleware = [
|
|
- 'auth' => 'App\Http\Middleware\Authenticate',
|
|
|
|
- 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
|
|
|
|
- 'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
|
|
|
|
|
|
+ 'auth' => \App\Http\Middleware\Authenticate::class,
|
|
|
|
+ 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
|
|
+ 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
|
];
|
|
];
|
|
}
|
|
}
|