Laraconfig
Laraconfig copied to clipboard
JsonException Syntax error when default value is null
when we create the settings as follows:
Setting::name('color')
->array()
->group('theme');
in this case default value for this setting should be null but in the table user_settings
the default value is empty string, which creates as error when try to get the setting
i have to create the new items like below, otherwise we have error
Setting::name('color')->array()->default([])->group('theme');