feat: #10000 规格更新

This commit is contained in:
赵世界 2022-08-09 20:05:19 +08:00
parent 3d40201c17
commit b20abf00d6
3 changed files with 21 additions and 3 deletions

View File

@ -15,7 +15,13 @@ class Goods extends Model
'brand_id', 'brand_id',
]; ];
protected $guarded = []; protected $fillable = [
'title',
'img_url',
'type_id',
'brand_id',
'goods_code',
];
/** /**
* 多规格 * 多规格

View File

@ -19,7 +19,19 @@ class GoodsSku extends Model
* *
* @var array * @var array
*/ */
protected $guarded = []; protected $fillable = [
'goods_id',
'title',
'sku_code',
'status',
'num',
'stock',
'cost',
'two_days_ago_num',
'yesterday_num',
'reference_price',
'reserve',
];
protected $hidden = ['created_at']; protected $hidden = ['created_at'];

View File

@ -37,7 +37,7 @@ return [
'name' => '规格查看', 'name' => '规格查看',
'parent_id' => 2, 'parent_id' => 2,
], ],
'goods_skus.udpate' => [ 'goods_skus.update' => [
'id' => 25, 'id' => 25,
'name' => '规格更新', 'name' => '规格更新',
'parent_id' => 2, 'parent_id' => 2,