Set the constraints for an eager load of the relation.
public addEagerConstraints ( array $models ) : void | ||
$models | array | |
Результат | void |
/** * Set the constraints for an eager load of the relation. * * @param array $models * @return void */ public function addEagerConstraints(array $models) { parent::addEagerConstraints($models); $this->query->where($this->morphType, $this->morphClass); }