To be consistent over my coding style, I'd like to use camelCase
to access attributes instead of snake_case
. Is this possible in Laravel without modifying the core framework? If so, how?
Example:
// Database column: first_name
echo $user->first_name; // Default Laravel behavior
echo $user->firstName; // Wanted behavior