2015-12-13 04:42:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http;
|
|
|
|
|
2022-11-16 17:57:38 +00:00
|
|
|
use App\Http\Middleware\AudioAuthenticate;
|
2015-12-13 04:42:28 +00:00
|
|
|
use App\Http\Middleware\Authenticate;
|
2024-03-30 16:49:25 +00:00
|
|
|
use App\Http\Middleware\EncryptCookies;
|
2019-05-18 20:43:30 +00:00
|
|
|
use App\Http\Middleware\ForceHttps;
|
2016-06-13 09:04:42 +00:00
|
|
|
use App\Http\Middleware\ObjectStorageAuthenticate;
|
2022-06-10 10:47:46 +00:00
|
|
|
use App\Http\Middleware\ThrottleRequests;
|
2017-02-14 06:53:02 +00:00
|
|
|
use App\Http\Middleware\TrimStrings;
|
2024-02-25 19:32:53 +00:00
|
|
|
use App\Http\Middleware\TrustHosts;
|
2024-03-30 16:49:25 +00:00
|
|
|
use App\Http\Middleware\VerifyCsrfToken;
|
2016-09-26 06:30:00 +00:00
|
|
|
use Illuminate\Auth\Middleware\Authorize;
|
2024-03-30 16:49:25 +00:00
|
|
|
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
2015-12-13 04:42:28 +00:00
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode;
|
2017-02-14 06:53:02 +00:00
|
|
|
use Illuminate\Foundation\Http\Middleware\ValidatePostSize;
|
2017-02-15 03:19:24 +00:00
|
|
|
use Illuminate\Routing\Middleware\SubstituteBindings;
|
2024-03-30 16:49:25 +00:00
|
|
|
use Illuminate\Session\Middleware\StartSession;
|
|
|
|
use Illuminate\View\Middleware\ShareErrorsFromSession;
|
2015-12-13 04:42:28 +00:00
|
|
|
|
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
2023-02-25 05:39:47 +00:00
|
|
|
* @var array<int,class-string>
|
2015-12-13 04:42:28 +00:00
|
|
|
*/
|
|
|
|
protected $middleware = [
|
|
|
|
CheckForMaintenanceMode::class,
|
2017-02-14 06:53:02 +00:00
|
|
|
ValidatePostSize::class,
|
|
|
|
TrimStrings::class,
|
2019-05-18 20:43:30 +00:00
|
|
|
ForceHttps::class,
|
2024-02-25 19:32:53 +00:00
|
|
|
TrustHosts::class,
|
2015-12-13 04:42:28 +00:00
|
|
|
];
|
|
|
|
|
2016-09-26 06:30:00 +00:00
|
|
|
/**
|
|
|
|
* The application's route middleware groups.
|
|
|
|
*
|
2023-02-25 05:39:47 +00:00
|
|
|
* @var array<string,array<int,string>>
|
2016-09-26 06:30:00 +00:00
|
|
|
*/
|
|
|
|
protected $middlewareGroups = [
|
|
|
|
'web' => [
|
2024-03-30 16:49:25 +00:00
|
|
|
EncryptCookies::class,
|
|
|
|
AddQueuedCookiesToResponse::class,
|
|
|
|
ShareErrorsFromSession::class,
|
|
|
|
StartSession::class,
|
|
|
|
VerifyCsrfToken::class,
|
|
|
|
SubstituteBindings::class,
|
2016-09-26 06:30:00 +00:00
|
|
|
],
|
|
|
|
'api' => [
|
|
|
|
'throttle:60,1',
|
2024-03-30 16:49:25 +00:00
|
|
|
SubstituteBindings::class,
|
2016-09-26 06:30:00 +00:00
|
|
|
],
|
|
|
|
];
|
|
|
|
|
2015-12-13 04:42:28 +00:00
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
2023-02-25 05:39:47 +00:00
|
|
|
* @var array<string,class-string>
|
2015-12-13 04:42:28 +00:00
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
|
|
|
'auth' => Authenticate::class,
|
2022-11-16 17:57:38 +00:00
|
|
|
'audio.auth' => AudioAuthenticate::class,
|
2016-06-13 09:04:42 +00:00
|
|
|
'os.auth' => ObjectStorageAuthenticate::class,
|
2016-09-26 06:30:00 +00:00
|
|
|
'bindings' => SubstituteBindings::class,
|
|
|
|
'can' => Authorize::class,
|
2016-09-26 07:33:53 +00:00
|
|
|
'throttle' => ThrottleRequests::class,
|
2015-12-13 04:42:28 +00:00
|
|
|
];
|
|
|
|
}
|