1 | <?php |
||
2 | |||
3 | namespace App\Http; |
||
4 | |||
5 | use App\Http\Middleware\CheckIsUserActivated; |
||
6 | use Illuminate\Foundation\Http\Kernel as HttpKernel; |
||
7 | |||
8 | class Kernel extends HttpKernel |
||
9 | { |
||
10 | /** |
||
11 | * The application's global HTTP middleware stack. |
||
12 | * |
||
13 | * These middleware are run during every request to your application. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $middleware = [ |
||
18 | \App\Http\Middleware\TrustProxies::class, |
||
19 | \Fruitcake\Cors\HandleCors::class, |
||
20 | \App\Http\Middleware\CheckForMaintenanceMode::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 | 'api' => [ |
||
42 | 'throttle:60,1', |
||
43 | \Illuminate\Routing\Middleware\SubstituteBindings::class, |
||
44 | ], |
||
45 | 'activated' => [ |
||
46 | CheckIsUserActivated::class, |
||
47 | ], |
||
48 | ]; |
||
49 | |||
50 | /** |
||
51 | * The application's route middleware. |
||
52 | * |
||
53 | * These middleware may be assigned to groups or used individually. |
||
54 | * |
||
55 | * @var array |
||
56 | */ |
||
57 | protected $routeMiddleware = [ |
||
58 | 'auth' => \App\Http\Middleware\Authenticate::class, |
||
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 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, |
||
65 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, |
||
66 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, |
||
67 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, |
||
68 | 'activated' => CheckIsUserActivated::class, |
||
69 | 'role' => \jeremykenedy\LaravelRoles\Middleware\VerifyRole::class, |
||
0 ignored issues
–
show
|
|||
70 | 'permission' => \jeremykenedy\LaravelRoles\Middleware\VerifyPermission::class, |
||
0 ignored issues
–
show
The type
jeremykenedy\LaravelRole...leware\VerifyPermission 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
71 | 'level' => \jeremykenedy\LaravelRoles\Middleware\VerifyLevel::class, |
||
0 ignored issues
–
show
The type
jeremykenedy\LaravelRoles\Middleware\VerifyLevel 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
72 | 'currentUser' => \App\Http\Middleware\CheckCurrentUser::class, |
||
73 | ]; |
||
74 | } |
||
75 |
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