public function from($table)
    {
        if ($table) {
            $this->table = r\table($table);
            $this->query->table($table);
        }

        return parent::from($table);
    }
public function from($table)
    {
        if ($table) {
            $this->table = r\table($table);
            $this->query->table($table);
        }

        return parent::from($table);
    }
public function from ( $ table ) { if ( $ table ) { $ this -> table = r \ table ( $ table ) ; $ this -> query -> table ( $ table ) ; } return parent :: from ( $ table ) ; }
Set the collection which the query is targeting.

@param string $table

@return Builder
Set the collection which the query is targeting .