Closed dunglas closed 2 months ago
Currently, model properties containing an underscore aren't written or read because an unneeded case conversion occurs. This patch fixes the issue.
A better fix could be to always convert internal snake_case model props to public camelCase API resources props. Now implemented in this PR.
Is it possible to add a property to test this at src/Laravel/workbench/app/Models/Book.php ?
Currently, model properties containing an underscore aren't written or read because an unneeded case conversion occurs. This patch fixes the issue.
A better fix could be to always convert internal snake_case model props to public camelCase API resources props.Now implemented in this PR.