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

[11.x] Add getGrantTypesAttribute method to fix Eloquent strict mode error #1705

Conversation

gdebrauwer
Copy link
Contributor

Since Laravel v10.40, Eloquent strict mode throws an error because "grant_types" 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

@taylorotwell taylorotwell merged commit e1a6514 into laravel:11.x Jan 10, 2024
9 checks passed
@taylorotwell
Copy link
Member

Eloquent strict mode is the worst feature in Laravel.

@mtawil
Copy link

mtawil commented Jan 16, 2024

@taylorotwell Please release a new version for this fix.

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.

3 participants