Take a look at helpers in the docs.
var_dump(Str::snake('mysqlPort')); // string(10) "mysql_port"
var_dump(snake_case('mysqlPort')); // string(10) "mysql_port"
var_dump(Str::camel('mysql_port')); // string(9) "mysqlPort"
var_dump(camel_case('mysql_port')); // string(9) "mysqlPort"
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community