We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latest
11.x
I am trying to get all settings for a user.
$user = Auth::user(); dd($user->settings()->all());
Returns an empty collection.
Illuminate\Support\Collection {#2596 ▼ #items: [] #escapeWhenCastingToString: false }
but this works:
dd($user->settings()->context('user')->all());
So it looks like the context is not applied automatically when calling settings()->all() on the User model.
No response
The text was updated successfully, but these errors were encountered:
I believe this is related to #49. Using the DotNotationContextSerializer should resolve this issue for you.
DotNotationContextSerializer
I'm going to close this issue, but feel free to re-open if that serializer doesn't help with this.
Sorry, something went wrong.
No branches or pull requests
Laravel Settings
latest
Laravel Version
11.x
Bug description
I am trying to get all settings for a user.
Returns an empty collection.
but this works:
So it looks like the context is not applied automatically when calling settings()->all() on the User model.
Steps to reproduce
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: