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