laravel-user-settings
laravel-user-settings copied to clipboard
Empty column error
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).
Using the get
function can be a work around!