1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00
invoiceninja/app/Http/Kernel.php

70 lines
2.3 KiB
PHP
Raw Permalink Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Http;
2015-03-12 01:44:39 +01:00
2017-03-21 14:41:01 +01:00
2015-03-12 01:44:39 +01:00
use Illuminate\Foundation\Http\Kernel as HttpKernel;
2017-01-30 17:05:31 +01:00
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
2017-11-15 12:39:24 +01:00
* These middleware are run during every request to your application.
*
2017-01-30 17:05:31 +01:00
* @var array
*/
protected $middleware = [
2017-11-15 12:39:24 +01:00
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
];
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
//\Illuminate\Routing\Middleware\SubstituteBindings::class,
2018-02-26 19:23:08 +01:00
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
2017-11-15 12:39:24 +01:00
\App\Http\Middleware\DuplicateSubmissionCheck::class,
\App\Http\Middleware\QueryLogging::class,
\App\Http\Middleware\StartupCheck::class,
],
2017-11-15 15:17:06 +01:00
'api' => [
2018-02-26 11:04:25 +01:00
\App\Http\Middleware\QueryLogging::class,
2017-11-15 15:17:06 +01:00
\App\Http\Middleware\ApiCheck::class,
],
/*
2017-11-15 12:39:24 +01:00
'api' => [
'throttle:60,1',
'bindings',
],
2017-11-15 15:17:06 +01:00
*/
2017-01-30 17:05:31 +01:00
];
2015-03-12 01:44:39 +01:00
2017-01-30 17:05:31 +01:00
/**
* The application's route middleware.
*
2017-11-15 12:39:24 +01:00
* These middleware may be assigned to groups or used individually.
*
2017-01-30 17:05:31 +01:00
* @var array
*/
protected $routeMiddleware = [
2017-11-15 19:05:31 +01:00
'auth' => \App\Http\Middleware\Authenticate::class,
2017-11-15 12:39:24 +01:00
'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,
'lookup' => \App\Http\Middleware\DatabaseLookup::class,
'permissions.required' => \App\Http\Middleware\PermissionsRequired::class,
2022-03-19 08:56:31 +01:00
'migration' => \App\Http\Middleware\EligibleForMigration::class,
2022-03-19 05:33:39 +01:00
'migration_channel' => \App\Http\Middleware\MigrationLookup::class,
2017-01-30 17:05:31 +01:00
];
2015-03-12 01:44:39 +01:00
}