| Package Data | |
|---|---|
| Maintainer Username: | grohiro |
| Package Create Date: | 2017-04-20 |
| Package Last Update: | 2021-01-15 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-30 03:16:36 |
| Package Statistics | |
|---|---|
| Total Downloads: | 80,322 |
| Monthly Downloads: | 633 |
| Daily Downloads: | 49 |
| Total Stars: | 27 |
| Total Watchers: | 2 |
| Total Forks: | 4 |
| Total Open Issues: | 5 |
Convert response JSON key to camelCase.
In controller class
return response()->json($model);
// => ['userName' => 'foo', 'userKey' => 'bar', ...]
$ composer require 'grohiro/laravel-camelcase-json' '~1.0'
Add the service provider.
config/app.php
'provider' => [
// default providers
// ...
Grohiro\LaravelCamelCaseJson\CamelCaseJsonResponseServiceProvider::class,
],