public function apply(Builder $builder) : Builder
    {
        if ($this->hasRequest()) {
            foreach ($this->request as $filter => $value) {
                $this->resolveQueryFor($builder, $filter);
        	}
        }

        return $builder;
    }
public function apply(Builder $builder) : Builder
    {
        if ($this->hasRequest()) {
            foreach ($this->request as $filter => $value) {
                $this->resolveQueryFor($builder, $filter);
        	}
        }

        return $builder;
    }
public function apply ( Builder $ builder ) : Builder { if ( $ this -> hasRequest ( ) ) { foreach ( $ this -> request as $ filter => $ value ) { $ this -> resolveQueryFor ( $ builder , $ filter ) ; } } return $ builder ; }
Apply an eloquent query to a given builder.

@param  Builder $builder

@return Builder
Apply an eloquent query to a given builder .