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 58 forks source link

Feature/camel case hidden and date fields #30

Closed cgwyllie closed 8 years ago

cgwyllie commented 8 years ago

Make the CamelCaseModel trait handle hidden and date fields that were declared in camelCase.

With this, any $hidden attributes in camelCase will not be visible when toArray is called on the model.

In addition, any $dates attributes declared in camelCase will be parsed into Carbon objects when set on the model.

kirkbushell commented 8 years ago

Very good, thanks for this! :)

cgwyllie commented 8 years ago

Welcome :)