source: app/Http/Kernel.php@ 0c07a90

Last change on this file since 0c07a90 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[0924b6c]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
15 */
16 protected $middleware = [
17 \App\Http\Middleware\CheckForMaintenanceMode::class,
18 \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 \App\Http\Middleware\TrimStrings::class,
20 \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21 \App\Http\Middleware\TrustProxies::class,
22 ];
23
24 /**
25 * The application's route middleware groups.
26 *
27 * @var array
28 */
29 protected $middlewareGroups = [
30 'web' => [
31 \App\Http\Middleware\EncryptCookies::class,
32 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
33 \Illuminate\Session\Middleware\StartSession::class,
34 // \Illuminate\Session\Middleware\AuthenticateSession::class,
35 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
36 \App\Http\Middleware\VerifyCsrfToken::class,
37 \Illuminate\Routing\Middleware\SubstituteBindings::class,
38 ],
39
40 'api' => [
41 'throttle:60,1',
42 'bindings',
43 ],
44 ];
45
46 /**
47 * The application's route middleware.
48 *
49 * These middleware may be assigned to groups or used individually.
50 *
51 * @var array
52 */
53 protected $routeMiddleware = [
54 'auth' => \App\Http\Middleware\Authenticate::class,
55 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
56 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
57 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
58 'can' => \Illuminate\Auth\Middleware\Authorize::class,
59 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
60 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
61 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
62 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
63 'createPassword' => \App\Http\Middleware\CheckCreatePassword::class,
64 'checkVerifyNewEmail' => \App\Http\Middleware\CheckVerifyNewEmail::class,
65 'permission' => \App\Http\Middleware\CheckPermission::class,
66 'checkIsActive' => \App\Http\Middleware\CheckIsActive::class,
67 ];
68
69 /**
70 * The priority-sorted list of middleware.
71 *
72 * This forces non-global middleware to always be in the given order.
73 *
74 * @var array
75 */
76 protected $middlewarePriority = [
77 \Illuminate\Session\Middleware\StartSession::class,
78 \Illuminate\View\Middleware\ShareErrorsFromSession::class,
79 \App\Http\Middleware\Authenticate::class,
80 \Illuminate\Session\Middleware\AuthenticateSession::class,
81 \Illuminate\Routing\Middleware\SubstituteBindings::class,
82 \Illuminate\Auth\Middleware\Authorize::class,
83 ];
84}
Note: See TracBrowser for help on using the repository browser.