2024-05-26 14:06:21 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property Good $good
|
|
|
|
*/
|
|
|
|
class GoodsItem extends Base
|
|
|
|
{
|
|
|
|
public $fillable = [
|
|
|
|
'item_id', 'brand', 'color_name', 'sell_point', 'specifications', 'shop_url', 'product_images', 'images',
|
|
|
|
'product_infos', 'app_introduce', 'applet_introduce'
|
|
|
|
];
|
2024-05-27 07:53:42 +00:00
|
|
|
public function good(): BelongsTo
|
|
|
|
{
|
2024-05-26 14:06:21 +00:00
|
|
|
return $this->belongsTo(Good::class, 'item_id', 'itemid');
|
|
|
|
}
|
|
|
|
}
|