Projekt

Obecné

Profil

Stáhnout (2.36 KB) Statistiky
| Větev: | Tag: | Revize:
1 5d28dbf4 Marek Lovčí
<?php
2
3
namespace App\Http;
4
5
use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
7
class 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\TrustProxies::class,
18
        \Fruitcake\Cors\HandleCors::class,
19
        \App\Http\Middleware\CheckForMaintenanceMode::class,
20
        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
21
        \App\Http\Middleware\TrimStrings::class,
22
        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
23
    ];
24
25
    /**
26
     * The application's route middleware groups.
27
     *
28
     * @var array
29
     */
30
    protected $middlewareGroups = [
31
        'web' => [
32
            \App\Http\Middleware\EncryptCookies::class,
33
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
34
            \Illuminate\Session\Middleware\StartSession::class,
35
            // \Illuminate\Session\Middleware\AuthenticateSession::class,
36
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
37
            \App\Http\Middleware\VerifyCsrfToken::class,
38
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
39
        ],
40
41
        'api' => [
42
            'throttle:60,1',
43
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
44
        ],
45
    ];
46
47
    /**
48
     * The application's route middleware.
49
     *
50
     * These middleware may be assigned to groups or used individually.
51
     *
52
     * @var array
53
     */
54
    protected $routeMiddleware = [
55
        'auth' => \App\Http\Middleware\Authenticate::class,
56
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
57
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
58
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
59
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
60
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
61
        'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
62
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
63
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
64
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
65
    ];
66
}