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

MissingAttributeException thrown when Eloquent is in strict mode #344

Open
chrillep opened this issue Apr 4, 2023 · 1 comment
Open
Labels

Comments

@chrillep
Copy link
Contributor

chrillep commented Apr 4, 2023

fixed by #339

steps to reproduce
add

Model::shouldBeStrict(! $this->app->isProduction());

to AppServiceProvider

https://laravel.com/docs/9.x/eloquent#enabling-eloquent-strict-mode

https://github.com/laravel/framework/blob/a9c6b58ebafc839b61e75b19aa38ec8bef45bf67/src/Illuminate/Database/Eloquent/Model.php#L402-L413

@chrillep chrillep added the bug label Apr 4, 2023
@chrillep chrillep changed the title Prevent MissingAttributeException errors when Eloquent is in strict mode MissingAttributeException thrown when Eloquent is in strict mode Apr 4, 2023
@dducro
Copy link

dducro commented Oct 18, 2023

Please merge PR #339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants