belongsToMany(Product::class, 'contracts') ->wherePivot('category', 'ownership') ->wherePivot('status', 'active') ->withTimestamps(); } public function feedbacks(): HasMany { return $this->hasMany(Feedback::class); } }