Skip to content

Commit

Permalink
pref: refactor response
Browse files Browse the repository at this point in the history
  • Loading branch information
jiannei committed Oct 13, 2023
1 parent 586b0dc commit 51307a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function formatError(array $error): object|array
*/
protected function formatDataFields(array $data): array
{
$formatConfig = \config('response.format.config', []);
$formatConfig = Config::get('response.format.config',[]);

foreach ($formatConfig as $key => $config) {
if (!Arr::has($data, $key)) {
Expand Down

0 comments on commit 51307a8

Please sign in to comment.