@ -134,4 +134,8 @@ class Goods extends Model
return $this->morphMany(ShoppingCart::class, 'goods');
}
public function getNameAttribute()
{
return $this->attributes['name'].' '.$this->attributes['goods_unit'];
@ -111,4 +111,9 @@ class GoodsActivity extends Model
return $img_host . $item;
});