[ \App\Http\Middleware\InstalledCheck::class, \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, #\App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, \Spatie\Pjax\Middleware\FilterIfPjax::class, ], 'api' => [ 'throttle:60,1', 'bindings', 'json', ], ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ 'api.auth' => \App\Http\Middleware\ApiAuth::class, 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'json' => \App\Http\Middleware\JsonResponse::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, #'role' => \Laratrust\Middleware\LaratrustRole::class, #'permission' => \Laratrust\Middleware\LaratrustPermission::class, #'ability' => \Laratrust\Middleware\LaratrustAbility::class, ]; }