hasMany(ProductImage::class, 'product_id', 'id'); } public function tabs() { return $this->hasMany(Tab::class); } public function category() { return $this->belongsTo(Category::class); } public function brand() { return $this->belongsTo(Brand::class); } public function type() { return $this->belongsTo(Type::class); } public function orderItems() { return $this->hasMany(OrderItem::class); } }