Illuminate\Database\Query\Builder::from PHP Method

from() public method

Set the table which the query is targeting.
public from ( string $table )
$table string
    public function from($table)
    {
        $this->from = $table;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Begin a fluent query against a database table.
  *
  * @param  string $table
  *
  * @return \Illuminate\Database\Query\Builder
  */
 public function table($table)
 {
     $processor = $this->getPostProcessor();
     $table = $this->db->prefix . $table;
     $query = new Builder($this, $this->getQueryGrammar(), $processor);
     return $query->from($table);
 }
All Usage Examples Of Illuminate\Database\Query\Builder::from