|
|
|
|
100
|
foreach ($exception->errors() as $col => $errorMsg) {
|
100
|
foreach ($exception->errors() as $col => $errorMsg) {
|
101
|
$validationData['errors']['validation'][$col] = $errorMsg[0];
|
101
|
$validationData['errors']['validation'][$col] = $errorMsg[0];
|
102
|
}
|
102
|
}
|
103
|
- return $this->apiExceptionResponse($exception, Response::HTTP_UNPROCESSABLE_ENTITY, config('response-message.validation_failed'), $validationData);
|
|
|
|
|
103
|
+ return $this->apiExceptionResponse($exception, Response::HTTP_UNPROCESSABLE_ENTITY, config('response-message.validation_failed123'), $validationData);
|
104
|
}
|
104
|
}
|
105
|
|
105
|
|
106
|
// Others: 500 error
|
106
|
// Others: 500 error
|