You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm use the same settings key for a global setting (user_id=0) and for a setting that's tied to a user. When attempting to fetch the global setting value, I get the user defined setting, instead. I would anticipate, if I'm not adding the setExtraColumns() to the method, it would default to the global (user_id=0) value.
Description:
I'm use the same settings key for a global setting (user_id=0) and for a setting that's tied to a user. When attempting to fetch the global setting value, I get the user defined setting, instead. I would anticipate, if I'm not adding the
setExtraColumns()
to the method, it would default to the global (user_id=0) value.Steps To Reproduce:
settings()->get('foo') // baz
settings()->setExtraColumns(['user_id' => auth()->id()])->get('foo'); // baz
settings()->setExtraColumns(['user_id' => 0])->get('foo'); // bar
Am I just understanding it wrong, or can the settings method default to u
user_id
of 0 first?The text was updated successfully, but these errors were encountered: