public function setModel($model)
	{
		$this->model = $model;
		
		$this->from($this->model->metableTable() . ' AS m');
		
		if ($this->model->metableTableSoftDeletes()) {
			$this->whereNull('m.' . $this->model->getDeletedAtColumn());
		}
		
		return $this;
	}
public function setModel($model)
	{
		$this->model = $model;
		
		$this->from($this->model->metableTable() . ' AS m');
		
		if ($this->model->metableTableSoftDeletes()) {
			$this->whereNull('m.' . $this->model->getDeletedAtColumn());
		}
		
		return $this;
	}
public function setModel ( $ model ) { $ this -> model = $ model ; $ this -> from ( $ this -> model -> metableTable ( ) . ' AS m' ) ; if ( $ this -> model -> metableTableSoftDeletes ( ) ) { $ this -> whereNull ( 'm.' . $ this -> model -> getDeletedAtColumn ( ) ) ; } return $ this ; }
Set the model for this instance.

@param \Illuminate\Database\Eloquent\Model $model

@return QueryBuilder
Set the model for this instance .