From 8ff7165e7fcb055c614f4ee6c885256f3b1c2ed2 Mon Sep 17 00:00:00 2001 From: liapples Date: Thu, 19 Aug 2021 18:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0guide=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/AgentProduct.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/AgentProduct.php b/app/Models/AgentProduct.php index 9ab1eed..2f9aa97 100644 --- a/app/Models/AgentProduct.php +++ b/app/Models/AgentProduct.php @@ -41,6 +41,11 @@ class AgentProduct extends BaseModel return $this->hasOne(User::class, 'id', 'verifier'); } + public function guide() + { + return $this->belongsTo(Guide::class); + } + public function item() { return $this->hasMany(AgentProductItem::class);