/home/sharedstore/public_html/shop.sharedstore.ma/api.shop.sharedstore.ma/app/Models
Edit: /home/sharedstore/public_html/shop.sharedstore.ma/api.shop.sharedstore.ma/app/Models/Product.php (1404B)
'json',
'details' => 'json',
// added elements :
'technical_specs' => 'json',
'duration' => 'json',
];
public function user()
{
return $this->belongsTo(User::class);
}
public function category()
{
return $this->belongsTo(Category::class);
}
public function license()
{
return $this->belongsTo(License::class);
}
public function reviews()
{
return $this->hasMany(Review::class);
}
public function orders()
{
return $this->hasMany(Order::class);
}
public function favorites()
{
return $this->hasMany(Favorite::class);
}
}