From b1ce555531cfa3985c6e17bfdd43122b92f46e56 Mon Sep 17 00:00:00 2001 From: liapples Date: Thu, 12 Aug 2021 11:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0supplier=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Product.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); + } }