4 |
4 |
5 use Illuminate\Foundation\Http\Kernel as HttpKernel; |
5 use Illuminate\Foundation\Http\Kernel as HttpKernel; |
6 |
6 |
7 class Kernel extends HttpKernel |
7 class Kernel extends HttpKernel |
8 { |
8 { |
|
9 |
9 /** |
10 /** |
10 * The application's global HTTP middleware stack. |
11 * The application's global HTTP middleware stack. |
|
12 * |
|
13 * These middleware are run during every request to your application. |
11 * |
14 * |
12 * @var array |
15 * @var array |
13 */ |
16 */ |
14 protected $middleware = [ |
17 protected $middleware = [ |
15 'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode', |
18 \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, |
16 'Illuminate\Cookie\Middleware\EncryptCookies', |
|
17 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse', |
|
18 'Illuminate\Session\Middleware\StartSession', |
|
19 'Illuminate\View\Middleware\ShareErrorsFromSession', |
|
20 'CorpusParole\Http\Middleware\VerifyCsrfToken', |
|
21 ]; |
19 ]; |
22 |
20 /** |
|
21 * The application's route middleware groups. |
|
22 * |
|
23 * @var array |
|
24 */ |
|
25 protected $middlewareGroups = [ |
|
26 'web' => [ |
|
27 \CorpusParole\Http\Middleware\EncryptCookies::class, |
|
28 \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, |
|
29 \Illuminate\Session\Middleware\StartSession::class, |
|
30 \Illuminate\View\Middleware\ShareErrorsFromSession::class, |
|
31 \CorpusParole\Http\Middleware\VerifyCsrfToken::class, |
|
32 ], |
|
33 'api' => [ |
|
34 'throttle:60,1', |
|
35 ], |
|
36 ]; |
23 /** |
37 /** |
24 * The application's route middleware. |
38 * The application's route middleware. |
|
39 * |
|
40 * These middleware may be assigned to groups or used individually. |
25 * |
41 * |
26 * @var array |
42 * @var array |
27 */ |
43 */ |
28 protected $routeMiddleware = [ |
44 protected $routeMiddleware = [ |
29 'auth' => 'CorpusParole\Http\Middleware\Authenticate', |
45 'auth' => \CorpusParole\Http\Middleware\Authenticate::class, |
30 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth', |
46 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, |
31 'guest' => 'CorpusParole\Http\Middleware\RedirectIfAuthenticated', |
47 'guest' => \CorpusParole\Http\Middleware\RedirectIfAuthenticated::class, |
|
48 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, |
32 ]; |
49 ]; |
|
50 // /** |
|
51 // * The application's global HTTP middleware stack. |
|
52 // * |
|
53 // * @var array |
|
54 // */ |
|
55 // protected $middleware = [ |
|
56 // // 'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode', |
|
57 // // 'Illuminate\Cookie\Middleware\EncryptCookies', |
|
58 // // 'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse', |
|
59 // // 'Illuminate\Session\Middleware\StartSession', |
|
60 // // 'Illuminate\View\Middleware\ShareErrorsFromSession', |
|
61 // // 'CorpusParole\Http\Middleware\VerifyCsrfToken', |
|
62 // ]; |
|
63 // |
|
64 // /** |
|
65 // * The application's route middleware. |
|
66 // * |
|
67 // * @var array |
|
68 // */ |
|
69 // protected $routeMiddleware = [ |
|
70 // 'auth' => 'CorpusParole\Http\Middleware\Authenticate', |
|
71 // 'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth', |
|
72 // 'guest' => 'CorpusParole\Http\Middleware\RedirectIfAuthenticated', |
|
73 // ]; |
33 } |
74 } |