|
|
@ -63,6 +63,7 @@ class Goods extends Model |
|
|
'is_effective', |
|
|
'is_effective', |
|
|
'noneffective_note', |
|
|
'noneffective_note', |
|
|
'details_imgs_url', |
|
|
'details_imgs_url', |
|
|
|
|
|
'goods_name' |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
protected function boot(): void |
|
|
protected function boot(): void |
|
|
@ -125,6 +126,11 @@ class Goods extends Model |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getGoodsNameAttribute() |
|
|
|
|
|
{ |
|
|
|
|
|
return $this->attributes['name']; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public function getNameAttribute($value) |
|
|
public function getNameAttribute($value) |
|
|
{ |
|
|
{ |
|
|
return $value . ' ' . $this->attributes['goods_unit']; |
|
|
return $value . ' ' . $this->attributes['goods_unit']; |
|
|
|