belongsTo(GoodBasic::class,"spuCode","spuCode") ->bind(["good_name","cat_id","is_exclusive","brand_id","good_img","good_unit","unit_name","brand_name","cat_name",'cat_search']); } public function platform(){ return $this->belongsTo(Platform::class,"platform_id","id")->bind(["platform_name"]); } public function yzGood(){ return $this->belongsTo(YzGood::class,"skuCode","item_no")->bind(["origin_price"=>"origin","deatil_url","yz_status"=>"status"]); } }