Allow the fields to be passed as an array as well as arguments
This commit is contained in:
		@ -56,7 +56,9 @@ class SearchBuilder
 | 
			
		||||
     */
 | 
			
		||||
    public function fields(/* $fields */)
 | 
			
		||||
    {
 | 
			
		||||
        $this->searchFields = func_get_args();
 | 
			
		||||
        $args = func_get_args();
 | 
			
		||||
 | 
			
		||||
        $this->searchFields = is_array( $args[0] ) ? $args[0] : $args;
 | 
			
		||||
 | 
			
		||||
        return $this->makeDriver();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user