morphMany(Image::class, 'imageable'); } public function categories() { return $this->belongsToMany(Category::class,'categories_products','product_uuid'); } protected $fillable = [ 'name', 'description', 'images', 'price', 'categories' ]; }