filterWithScopes($query, $filters); } protected function user(): BelongsTo { return $this->belongsTo(); } protected function foods(): MorphHasMany { return $this->morphMany($this->hasMany('foods')); } protected function recipes(): MorphHasMany { return $this->morphMany($this->hasMany('recipes')); } }