Refactor project structure and update dependencies
This commit is contained in:
@@ -21,6 +21,9 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
->throttleApi(redis: true)
|
||||
->trustProxies(at: [
|
||||
'127.0.0.1',
|
||||
'10.0.0.0/8',
|
||||
'172.16.0.0/12',
|
||||
'192.168.0.0/16',
|
||||
])
|
||||
->api(prepend: [
|
||||
JsonResponse::class,
|
||||
@@ -62,7 +65,7 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
'message' => $e->getMessage(),
|
||||
'errors' => array_map(function ($field, $errors) {
|
||||
return [
|
||||
'path' => $field,
|
||||
'name' => $field,
|
||||
'message' => implode(' ', $errors),
|
||||
];
|
||||
}, array_keys($e->errors()), $e->errors()),
|
||||
|
||||
Reference in New Issue
Block a user