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

JsonException Syntax error when default value is null  #23

@eafarooqi

Description

@eafarooqi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions