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'); + } }