/** * Set the constraints for an eager load of the relation. * * @param array $models * @return void * @static */ public static function addEagerConstraints($models) { //Method inherited from \Illuminate\Database\Eloquent\Relations\HasOneOrMany \Illuminate\Database\Eloquent\Relations\HasMany::addEagerConstraints($models); }