public function newQuery() { return new static($this->connection, $this->grammar, $this->processor); }
/** * Get a new instance of the query builder. * * @return \Illuminate\Database\Query\Builder */ public function newQuery() { $query = parent::newQuery(); return $query->setModel($this->model); }