public function addConstraints() { parent::addConstraints(); $this->query->where($this->morphType, $this->morphClass); }