|
...
|
...
|
@@ -36,12 +36,12 @@ class Category extends Base |
|
|
|
|
|
|
|
public function getImageAttribute($value)
|
|
|
|
{
|
|
|
|
return $this->getImageUrl($value);
|
|
|
|
return Upload::path2url($value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setImageAttribute($value)
|
|
|
|
{
|
|
|
|
$this->attributes['image'] = $value;
|
|
|
|
$this->attributes['image'] = Upload::url2path($value);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
...
|
...
|
|