Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Kernel.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | protected $routeMiddleware = [ | ||||
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, | ||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, | ||||
'can' => \Illuminate\Auth\Middleware\Authorize::class, | 'can' => \Illuminate\Auth\Middleware\Authorize::class, | ||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, | ||||
'reseller' => \App\Http\Middleware\AuthenticateReseller::class, | 'reseller' => \App\Http\Middleware\AuthenticateReseller::class, | ||||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, | ||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, | ||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, | ||||
'scopes' => \Laravel\Passport\Http\Middleware\CheckScopes::class, | |||||
'scope' => \Laravel\Passport\Http\Middleware\CheckForAnyScope::class, | |||||
]; | ]; | ||||
/** | /** | ||||
* Handle an incoming HTTP request. | * Handle an incoming HTTP request. | ||||
* | * | ||||
* @param \Illuminate\Http\Request $request HTTP Request object | * @param \Illuminate\Http\Request $request HTTP Request object | ||||
* | * | ||||
* @return \Illuminate\Http\Response | * @return \Illuminate\Http\Response | ||||
*/ | */ | ||||
public function handle($request) | public function handle($request) | ||||
{ | { | ||||
// Overwrite the http request object | // Overwrite the http request object | ||||
return parent::handle(Request::createFrom($request)); | return parent::handle(Request::createFrom($request)); | ||||
} | } | ||||
} | } |