diff --git a/app/Models/IndustryOrder.php b/app/Models/IndustryOrder.php index c0072f1..d179ccf 100644 --- a/app/Models/IndustryOrder.php +++ b/app/Models/IndustryOrder.php @@ -25,11 +25,11 @@ class IndustryOrder extends BaseModel public function industryProduct() { - return $this->belongsTo(IndustryProduct::class); + return $this->belongsTo(IndustryProduct::class)->withTrashed(); } public function spec() { - return $this->hasOne(IndustryProductSpec::class, 'id', 'industry_product_spec_id'); + return $this->hasOne(IndustryProductSpec::class, 'id', 'industry_product_spec_id')->withTrashed(); } }