config changes
This commit is contained in:
parent
1d83049a12
commit
a741e0e570
|
|
@ -19,6 +19,9 @@ class Category extends TranslatableModel
|
|||
*/
|
||||
public function image_url()
|
||||
{
|
||||
if (! $this->image)
|
||||
return;
|
||||
|
||||
return Storage::url($this->image);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class CoreConfigRepository extends Repository
|
|||
}
|
||||
|
||||
if (getType($value) == 'array') {
|
||||
if (!$value['delete']) {
|
||||
if(! isset($value['delete'])) {
|
||||
$value = implode(",", $value);
|
||||
}
|
||||
}
|
||||
|
|
@ -94,7 +94,7 @@ class CoreConfigRepository extends Repository
|
|||
$value = request()->file($fieldName)->store($dir);
|
||||
}
|
||||
|
||||
if (! count($coreConfigValue) > 0) {
|
||||
if (! count($coreConfigValue)) {
|
||||
$this->model->create([
|
||||
'code' => $fieldName,
|
||||
'value' => $value,
|
||||
|
|
|
|||
Loading…
Reference in New Issue