Issues (367)

app/Http/Kernel.php (2 issues)

Labels
Severity
1
<?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\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
            'auth:api',
44
            'cors'
45
        ],
46
    ];
47
48
    /**
49
     * The application's route middleware.
50
     *
51
     * These middleware may be assigned to groups or used individually.
52
     *
53
     * @var array
54
     */
55
    protected $routeMiddleware = [
56
        'auth' => \App\Http\Middleware\Authenticate::class,
57
        // 'auth:api'
58
        'cors' => \App\Http\Middleware\CorsMiddleware::class,
0 ignored issues
show
The type App\Http\Middleware\CorsMiddleware was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
59
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
60
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
61
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
62
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
63
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
64
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
65
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
66
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::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
        \App\Http\Middleware\AuthorizationToolMiddleware::class,
0 ignored issues
show
The type App\Http\Middleware\AuthorizationToolMiddleware was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
78
        \Illuminate\Session\Middleware\StartSession::class,
79
        \Illuminate\View\Middleware\ShareErrorsFromSession::class,
80
        \App\Http\Middleware\Authenticate::class,
81
        \Illuminate\Session\Middleware\AuthenticateSession::class,
82
        \Illuminate\Routing\Middleware\SubstituteBindings::class,
83
        \Illuminate\Auth\Middleware\Authorize::class,
84
    ];
85
}
86