1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Http/Kernel.php

39 lines
1.1 KiB
PHP
Raw Normal View History

2015-03-12 01:44:39 +01:00
<?php namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel {
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
2015-04-02 15:06:16 +02:00
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
2015-03-12 01:44:39 +01:00
'Illuminate\Cookie\Middleware\EncryptCookies',
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'App\Http\Middleware\VerifyCsrfToken',
2015-04-22 21:21:04 +02:00
'App\Http\Middleware\DuplicateSubmissionCheck',
'App\Http\Middleware\QueryLogging',
2016-09-11 16:30:23 +02:00
'App\Http\Middleware\StartupCheck',
2015-03-12 01:44:39 +01:00
];
2016-09-06 11:24:25 +02:00
2015-03-12 01:44:39 +01:00
/**
* The application's route middleware.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => 'App\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
2016-03-16 00:08:00 +01:00
'permissions.required' => 'App\Http\Middleware\PermissionsRequired',
2015-03-12 01:44:39 +01:00
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
2015-04-02 15:06:16 +02:00
'api' => 'App\Http\Middleware\ApiCheck',
2015-03-12 01:44:39 +01:00
];
}