laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.25k stars 780 forks source link

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

Closed gdebrauwer closed 5 months ago

gdebrauwer commented 5 months ago

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

taylorotwell commented 5 months ago

Eloquent strict mode is the worst feature in Laravel.

mtawil commented 5 months ago

@taylorotwell Please release a new version for this fix.