From ac7d60899eb53154ddcf326d9c24fbc4d2ef71d0 Mon Sep 17 00:00:00 2001 From: liapples Date: Sun, 17 Oct 2021 13:16:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0spec=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/IndustryOrder.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/IndustryOrder.php b/app/Models/IndustryOrder.php index 52ce6cc..86d243b 100644 --- a/app/Models/IndustryOrder.php +++ b/app/Models/IndustryOrder.php @@ -24,4 +24,9 @@ class IndustryOrder extends BaseModel { return $this->belongsTo(IndustryProduct::class); } + + public function spec() + { + return $this->hasOne(IndustryProductSpec::class, 'id', 'industry_product_spec_id'); + } }