Fix display of supplier products and offerings - wasnt including all services

This commit is contained in:
2023-03-15 15:34:28 +11:00
parent b719efb58c
commit a6f01d0864
5 changed files with 14 additions and 16 deletions

View File

@@ -20,11 +20,11 @@ abstract class Type extends Model
/**
* The product that sells this type
*
* @return \Illuminate\Database\Eloquent\Relations\MorphOne
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
*/
public function product()
public function products()
{
return $this->morphOne(Product::class, null,'model','model_id');
return $this->morphMany(Product::class, null,'model','model_id');
}
/**