|
...
|
...
|
@@ -36,11 +36,11 @@ class Product extends Base |
|
|
|
$this->attributes['thumb'] = Arr::a2s($value);
|
|
|
|
}
|
|
|
|
|
|
|
|
// public function getThumbAttribute($value){
|
|
|
|
// $value = Arr::s2a($value);
|
|
|
|
// $value['url'] = $this->getImageUrl($value['url']);
|
|
|
|
// return $value;
|
|
|
|
// }
|
|
|
|
public function getThumbAttribute($value){
|
|
|
|
$value = Arr::s2a($value);
|
|
|
|
$value['url'] = $this->getImageUrl($value['url']);
|
|
|
|
return $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setGalleryAttribute($value){
|
|
|
|
$this->attributes['gallery'] = Arr::a2s($value);
|
...
|
...
|
|