i have a category model with products :
public function products(){
return $this->morphedByMany('App\Models\Product', 'categorized', 'categorized');
}
and i have a products model with manufacturer by manufacturer_id in my db:
public function manufacturer()
{
return $this->belongsTo('App\Models\Business', 'manufacturer_id')- >where('manufacturer', true);
}
how i can get a list for all the manufacturer belogs to products in this spesipic category
this how i go the product in the category:
$category->products()->get();
thanks