diff --git a/app/Models/Product.php b/app/Models/Product.php index e2d147e..89e6e8e 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -34,8 +34,8 @@ class Product extends BaseModel return $this->pictures[0] ?? ''; } - /*public function productInfo() - { - return $this->hasOne(ProductInfo::class); - }*/ + public function supplier() + { + return $this->belongsTo(Supplier::class); + } }