In this article, I will talk about how to have camelCase properties in Eloquent models. Let’s see these two ways.
One of the issues in using models with Eloquent ORM is having the default behavior of all the attributes in snake_case.
Like this for example:
// We import the model class.