@@ -34,7 +34,7 @@ class Kernel extends HttpKernel
3434 *
3535 * These middleware are run during every request to your application.
3636 *
37- * @var array
37+ * @var array<int, class-string|string>
3838 */
3939 protected $ middleware = [
4040 // \Gamify\Http\Middleware\TrustHosts::class,
@@ -49,7 +49,7 @@ class Kernel extends HttpKernel
4949 /**
5050 * The application's route middleware groups.
5151 *
52- * @var array
52+ * @var array<string, array<int, class-string|string>>
5353 */
5454 protected $ middlewareGroups = [
5555 'web ' => [
@@ -62,19 +62,19 @@ class Kernel extends HttpKernel
6262 ],
6363
6464 'api ' => [
65- ' throttle :api ' ,
65+ \ Illuminate \ Routing \ Middleware \ThrottleRequests::class. ' :api ' ,
6666 \Illuminate \Routing \Middleware \SubstituteBindings::class,
6767 ],
6868 ];
6969
7070 /**
71- * The application's route middleware.
71+ * The application's middleware aliases .
7272 *
7373 * These middleware may be assigned to groups or used individually.
7474 *
75- * @var array
75+ * @var array<string, class-string|string>
7676 */
77- protected $ routeMiddleware = [
77+ protected $ middlewareAliases = [
7878 'auth ' => \Gamify \Http \Middleware \Authenticate::class,
7979 'auth.basic ' => \Illuminate \Auth \Middleware \AuthenticateWithBasicAuth::class,
8080 'auth.session ' => \Illuminate \Session \Middleware \AuthenticateSession::class,
0 commit comments