spatie / laravel-comments-app

An application for testing out laravel-comments
https://laravel-comments.com
5 stars 2 forks source link

Any issues with using Strict Mode and lack of 'name' in user model? #4

Closed npw1982 closed 1 year ago

npw1982 commented 1 year ago

Hi guys,

Our User model doesn't have a name attibute, its split into first_name and last_name, this was fine as I specified 'name' => 'last_name' in the config file, however after turning on the new Eloquent Strict Mode, i am getting a MissingAttributeException for 'name'. Even though it should be referencing 'last_name'?

It is likely something I have done, but any ideas what may be causing this?

spatie-bot commented 1 year ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.