config changes

This commit is contained in:
rahul shukla 2019-02-04 15:20:15 +05:30
parent 1d83049a12
commit a741e0e570
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,9 @@ class Category extends TranslatableModel
*/
public function image_url()
{
if (! $this->image)
return;
return Storage::url($this->image);
}

View File

@ -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,