We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f3c5a commit 91c46d8Copy full SHA for 91c46d8
src/Classes/ApiResponseBuilder.php
@@ -23,12 +23,15 @@ public static function validationError(ValidationException $e): JsonResponse
23
->build();
24
}
25
26
+ /**
27
+ * @param object|array|null $data
28
+ */
29
public static function exceptionError(
30
Throwable $throwable = null,
31
string $apiCode = null,
32
int $httpCode,
33
string $message = null,
- string $data = null,
34
+ mixed $data = null,
35
array $headers = []
36
): JsonResponse {
37
$apiCode = $apiCode ?? config('laravel-plus-api.default_response.error.api_code');
0 commit comments