belongsTo(Supplier::class)->withTrashed(); } public function agent() { return $this->belongsTo(Agent::class)->withTrashed(); } public function industryProduct() { return $this->belongsTo(IndustryProduct::class); } public function spec() { return $this->hasOne(IndustryProductSpec::class, 'id', 'industry_product_spec_id'); } }