完善
This commit is contained in:
parent
6dddb19629
commit
186e05311e
|
@ -5,7 +5,7 @@
|
||||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property GoodsItem $good_item
|
* @property GoodsItem $item
|
||||||
*/
|
*/
|
||||||
class Good extends Base
|
class Good extends Base
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,7 +14,8 @@ class GoodsItem extends Base
|
||||||
'item_id', 'brand', 'color_name', 'sell_point', 'specifications', 'shop_url', 'product_images', 'images',
|
'item_id', 'brand', 'color_name', 'sell_point', 'specifications', 'shop_url', 'product_images', 'images',
|
||||||
'product_infos', 'app_introduce', 'applet_introduce'
|
'product_infos', 'app_introduce', 'applet_introduce'
|
||||||
];
|
];
|
||||||
public function Good () : BelongsTo{
|
public function good(): BelongsTo
|
||||||
|
{
|
||||||
return $this->belongsTo(Good::class, 'item_id', 'itemid');
|
return $this->belongsTo(Good::class, 'item_id', 'itemid');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user