Skip to content
New issue

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

Add getScopesAttribute and getScopesAttribute methods #1709

Merged
merged 2 commits into from Jan 17, 2024
Merged

Add getScopesAttribute and getScopesAttribute methods #1709

merged 2 commits into from Jan 17, 2024

Conversation

uintaam
Copy link
Contributor

@uintaam uintaam commented Jan 17, 2024

Since Laravel v10.40, Eloquent strict mode throws an error because "scopes" does not exist on the Client model. This is caused by laravel/framework#49480. By adding a getter-method for the attribute, the error disappears.

The setter-method was also required to make sure scopes are updated on calls to $model->scopes

Based of changes in #1705 for "grant_types"

@uintaam uintaam changed the title Add getScopesAttribute method Add getScopesAttribute and getScopesAttribute methods Jan 17, 2024
@taylorotwell taylorotwell merged commit 27a4f34 into laravel:11.x Jan 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants