Now you can. I just completed a package that allows you to fully work with model attributes in camelCase, if necessary.
https://github.com/kirkbushell/eloquence
Install the package as usual:
composer require kirkbushell/eloquence ~1.0
Then configure your service providers:
'KirkBushell\Eloquence\EloquenceServiceProvider',
Then all you have to do is either configure Eloquent to point to the new class as part of your aliases in application / config / app.php:
'Eloquent' => 'KirkBushell\Eloquence\Database\Model',
This ensures that the library is basically a replacement. If you just want to test some models, you can simply extend the class of the base Eloquence model:
class MyModel extends \KirkBushell\Eloquence\Database\Model
I built this class mainly because it hurt me to see snake_case in our javascript applications, but also in our server code. This ensured that everywhere (front-end and back-end) deals with the camel body.
source share