source: app/Http/Kernel.php@ 69e9f5d

main
Last change on this file since 69e9f5d was c454c0f, checked in by bube-ristovska <ristovska725@…>, 12 months ago

First commit

  • Property mode set to 100644
File size: 2.7 KB
Line 
1<?php
2
3namespace App\Http;
4
5use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
7class Kernel extends HttpKernel
8{
9 /**
10 * The application's global HTTP middleware stack.
11 *
12 * These middleware are run during every request to your application.
13 *
14 * @var array<int, class-string|string>
15 */
16 protected $middleware = [
17 // \App\Http\Middleware\TrustHosts::class,
18 \App\Http\Middleware\TrustProxies::class,
19 \Illuminate\Http\Middleware\HandleCors::class,
20 \App\Http\Middleware\PreventRequestsDuringMaintenance::class,
21 \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
22 \App\Http\Middleware\TrimStrings::class,
23 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
24 ];
25
26 /**
27 * The application's route middleware groups.
28 *
29 * @var array<string, array<int, class-string|string>>
30 */
31 protected $middlewareGroups = [
32 'web' => [
33 \App\Http\Middleware\EncryptCookies::class,
34 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35 \Illuminate\Session\Middleware\StartSession::class,
36 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
37 \App\Http\Middleware\VerifyCsrfToken::class,
38 \Illuminate\Routing\Middleware\SubstituteBindings::class,
39 ],
40
41 'api' => [
42 // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
43 \Illuminate\Routing\Middleware\ThrottleRequests::class.':api',
44 \Illuminate\Routing\Middleware\SubstituteBindings::class,
45 ],
46 ];
47
48 /**
49 * The application's middleware aliases.
50 *
51 * Aliases may be used instead of class names to conveniently assign middleware to routes and groups.
52 *
53 * @var array<string, class-string|string>
54 */
55 protected $middlewareAliases = [
56 'auth' => \App\Http\Middleware\Authenticate::class,
57 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
58 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
59 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
60 'can' => \Illuminate\Auth\Middleware\Authorize::class,
61 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
62 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
63 'precognitive' => \Illuminate\Foundation\Http\Middleware\HandlePrecognitiveRequests::class,
64 'signed' => \App\Http\Middleware\ValidateSignature::class,
65 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
66 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
67 ];
68}
Note: See TracBrowser for help on using the repository browser.