Laraconfig icon indicating copy to clipboard operation
Laraconfig copied to clipboard

JsonException Syntax error when default value is null

Open eafarooqi opened this issue 3 years ago • 0 comments

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');

eafarooqi avatar Sep 22 '21 12:09 eafarooqi