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

Empty column error #23

Open
IP-Developer opened this issue Dec 26, 2016 · 1 comment
Open

Empty column error #23

IP-Developer opened this issue Dec 26, 2016 · 1 comment

Comments

@IP-Developer
Copy link

IP-Developer commented Dec 26, 2016

I get array_key_exists() expects parameter 2 to be array, null given, when using Setting::has() in case when settings column has no value. Setting::all($user->id) returns null. It is not possible to set a default value of [] to a TEXT column. I think the package should check if the column is empty, as it overwrites the $settings property in the Setting class (at least it seems to).

@summerblue
Copy link

summerblue commented Mar 26, 2017

Using the get function can be a work around!

ricardoboss added a commit to ricardoboss/laravel-user-settings that referenced this issue Feb 2, 2020
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

2 participants