protected function addRequestMiddlewareToBeginning(Kernel $kernel) { $kernel->prependMiddleware(Request::class); }