public function viaRequest($driver, callable $callback)
    {
        return $this->extend($driver, function () use ($callback) {
            $guard = new RequestGuard($callback, $this->app['request'], $this->createUserProvider());

            $this->app->refresh('request', $guard, 'setRequest');

            return $guard;
        });
    }
public function viaRequest($driver, callable $callback)
    {
        return $this->extend($driver, function () use ($callback) {
            $guard = new RequestGuard($callback, $this->app['request'], $this->createUserProvider());

            $this->app->refresh('request', $guard, 'setRequest');

            return $guard;
        });
    }
public function viaRequest ( $ driver , callable $ callback ) { return $ this -> extend ( $ driver , function ( ) use ( $ callback ) { $ guard = new RequestGuard ( $ callback , $ this -> app [ 'request' ] , $ this -> createUserProvider ( ) ) ; $ this -> app -> refresh ( 'request' , $ guard , 'setRequest' ) ; return $ guard ; } ) ; }
Register a new callback based request guard.

@param  string  $driver
@param  callable  $callback
@return $this
Register a new callback based request guard .