kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 60 forks source link

allow mass assignment of camelCased fields #81

Closed horuskol closed 3 years ago

horuskol commented 3 years ago

Overload the Eloquent isGuardableColumn to convert camelCased field names into snake_cased column names to re-enable mass assignment to these fields.

Fixes #80

horuskol commented 3 years ago

Thinking on this overnight, and I should have put a test for this. Update coming this morning.

kirkbushell commented 3 years ago

Thank you very much, @horuskol !