|
@@ -29,10 +29,12 @@ class Kernel extends HttpKernel
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
+ \Illuminate\Routing\Middleware\SubstitutesBindings::class,
|
|
],
|
|
],
|
|
|
|
|
|
'api' => [
|
|
'api' => [
|
|
'throttle:60,1',
|
|
'throttle:60,1',
|
|
|
|
+ 'bindings',
|
|
],
|
|
],
|
|
];
|
|
];
|
|
|
|
|
|
@@ -46,6 +48,7 @@ class Kernel extends HttpKernel
|
|
protected $routeMiddleware = [
|
|
protected $routeMiddleware = [
|
|
'auth' => \App\Http\Middleware\Authenticate::class,
|
|
'auth' => \App\Http\Middleware\Authenticate::class,
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
|
|
+ 'bindings' => \Illuminate\Routing\Middleware\SubstitutesBindings::class,
|
|
'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
|
|
'can' => \Illuminate\Foundation\Http\Middleware\Authorize::class,
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|