Astrotomic / laravel-translatable

A Laravel package for multilingual models
https://docs.astrotomic.info/laravel-translatable/
MIT License
1.22k stars 153 forks source link

MissingAttributeException thrown when Eloquent is in strict mode #344

Open chrillep opened 1 year ago

chrillep commented 1 year ago

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

dducro commented 9 months ago

Please merge PR #339