diff options
Diffstat (limited to 'infrastructure/Http/Kernel.php')
-rw-r--r-- | infrastructure/Http/Kernel.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/infrastructure/Http/Kernel.php b/infrastructure/Http/Kernel.php new file mode 100644 index 0000000..d74c8b3 --- /dev/null +++ b/infrastructure/Http/Kernel.php @@ -0,0 +1,47 @@ +<?php + +namespace Infrastructure\Http; + +use Illuminate\Foundation\Http\Kernel as HttpKernel; + +class Kernel extends HttpKernel +{ + /** + * The application's global HTTP middleware stack. + * + * These middleware are run during every request to your application. + * + * @var array + */ + protected $middleware = [ + \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, + \Infrastructure\Http\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, + ]; + + /** + * The application's route middleware groups. + * + * @var array + */ + protected $middlewareGroups = [ + + ]; + + /** + * The application's route middleware. + * + * These middleware may be assigned to groups or used individually. + * + * @var array + */ + protected $routeMiddleware = [ + 'auth' => \Infrastructure\Auth\Middleware\AccessTokenChecker::class, + 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, + 'can' => \Illuminate\Auth\Middleware\Authorize::class, + 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, + ]; +} |