Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

JsonException Syntax error when default value is null #23

Open
eafarooqi opened this issue Sep 22, 2021 · 0 comments
Open

JsonException Syntax error when default value is null #23

eafarooqi opened this issue Sep 22, 2021 · 0 comments

Comments

@eafarooqi
Copy link
Contributor

eafarooqi commented Sep 22, 2021

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');
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant