@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Exceptions; |
| 4 | 4 | |
| 5 | -use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
| 5 | +use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
| 6 | 6 | use Throwable; |
| 7 | 7 | |
| 8 | 8 | class Handler extends ExceptionHandler |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | return \Response::json(['errors' => [$errors]], $e->getStatusCode()); |
| 66 | 66 | } elseif ($e instanceof \Illuminate\Validation\ValidationException) {
|
| 67 | 67 | return \Response::json(['errors' => $e->errors()], 422); |
| 68 | - } elseif (! $e instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
|
|
| 68 | + } elseif ( ! $e instanceof \Symfony\Component\ErrorHandler\Error\FatalError) {
|
|
| 69 | 69 | return parent::render($request, $e); |
| 70 | 70 | } |
| 71 | 71 | } |