update setting
This commit is contained in:
parent
39c05d051d
commit
bd2eddb196
|
|
@ -109,7 +109,7 @@ class SettingRepo
|
|||
$space = $data['space'] ?? '';
|
||||
$name = $data['name'] ?? '';
|
||||
$value = (string)$data['value'] ?? '';
|
||||
$json = (bool)$data['json'] ?? '';
|
||||
$json = (bool)$data['json'] ?? is_array($value);
|
||||
|
||||
$setting = Setting::query()
|
||||
->where('type', $type)
|
||||
|
|
|
|||
Loading…
Reference in New Issue