protected function setUserResolver()
    {
        $this->app->rebinding('request', function ($app, $request) {
            $request->setUserResolver(function () use ($app) {
                return $app['sentinel']->getUser();
            });
        });
    }
protected function setUserResolver()
    {
        $this->app->rebinding('request', function ($app, $request) {
            $request->setUserResolver(function () use ($app) {
                return $app['sentinel']->getUser();
            });
        });
    }
protected function setUserResolver ( ) { $ this -> app -> rebinding ( 'request' , function ( $ app , $ request ) { $ request -> setUserResolver ( function ( ) use ( $ app ) { return $ app [ 'sentinel' ] -> getUser ( ) ; } ) ; } ) ; }
Sets the user resolver on the request class.

@return void
Sets the user resolver on the request class .