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