protected function prepareRequest(SymfonyRequest $request)
    {
        if (! $request instanceof Request) {
            $request = Request::createFromBase($request);
        }

        $request->setUserResolver(function ($guard = null) {
            return $this->make('auth')->guard($guard)->user();
        })->setRouteResolver(function () {
            return $this->currentRoute;
        });

        return $request;
    }
protected function prepareRequest(SymfonyRequest $request)
    {
        if (! $request instanceof Request) {
            $request = Request::createFromBase($request);
        }

        $request->setUserResolver(function ($guard = null) {
            return $this->make('auth')->guard($guard)->user();
        })->setRouteResolver(function () {
            return $this->currentRoute;
        });

        return $request;
    }
protected function prepareRequest ( SymfonyRequest $ request ) { if ( ! $ request instanceof Request ) { $ request = Request :: createFromBase ( $ request ) ; } $ request -> setUserResolver ( function ( $ guard = null ) { return $ this -> make ( 'auth' ) -> guard ( $ guard ) -> user ( ) ; } ) -> setRouteResolver ( function ( ) { return $ this -> currentRoute ; } ) ; return $ request ; }
Prepare the given request instance for use with the application.

@param  \Symfony\Component\HttpFoundation\Request $request
@return \Illuminate\Http\Request
Prepare the given request instance for use with the application .