예제 #1
0
 /**
  * Set the where clause for the relation query.
  *
  * @return $this
  */
 protected function setWhere()
 {
     parent::setWhere();
     $this->query->where($this->table . '.' . $this->morphType, $this->morphClass);
     return $this;
 }