whereHas('status', function ($q) { $q->where('name', 'Новое'); }); } public function category() { return $this->belongsTo(Category::class); } public function status() { return $this->belongsTo(Status::class); } public function notes() { return $this->morphMany(Note::class, 'noteable'); } }