diff --git a/src/Http/JsonApiResponse.php b/src/Http/JsonApiResponse.php index 121ba45..f5b90e1 100644 --- a/src/Http/JsonApiResponse.php +++ b/src/Http/JsonApiResponse.php @@ -181,6 +181,7 @@ protected function serializeResponse(mixed $response): mixed return match ($requesterAccepts) { 'application/json' => $response instanceof Builder ? $response->simplePaginate() : $response, 'application/vnd.api+json' => Apiable::toJsonApi($response), + 'raw' => $response, default => throw new HttpException(406, 'Not acceptable response formatting'), }; }