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\TrustHosts::class, |
||
18 | \App\Http\Middleware\TrustProxies::class, |
||
19 | \Fruitcake\Cors\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 |
||
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\Session\Middleware\AuthenticateSession::class, |
||
37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, |
||
38 | \App\Http\Middleware\VerifyCsrfToken::class, |
||
39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, |
||
40 | ], |
||
41 | |||
42 | 'api' => [ |
||
43 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, |
||
44 | 'throttle:api', |
||
45 | \Illuminate\Routing\Middleware\SubstituteBindings::class, |
||
46 | ], |
||
47 | ]; |
||
48 | |||
49 | /** |
||
50 | * The application's route middleware. |
||
51 | * |
||
52 | * These middleware may be assigned to groups or used individually. |
||
53 | * |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $routeMiddleware = [ |
||
57 | 'auth' => \App\Http\Middleware\Authenticate::class, |
||
58 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::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 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, |
||
64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, |
||
65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, |
||
66 | 'developer' => \App\Http\Middleware\Developer::class, |
||
0 ignored issues
–
show
|
|||
67 | ]; |
||
68 | } |
||
69 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths