src/Http/Responses/Decorators/EscapeHtmlDecorator.php
public function make(array $data, int $status, array $headers = []): JsonResponse
    {
        array_walk_recursive($data, function (&$value) {
            if (is_string($value)) {
                $value = e($value);
            }
        });

        return $this->factory->make($data, $status, $headers);
    }
public function make(array $data, int $status, array $headers = []): JsonResponse
    {
        array_walk_recursive($data, function (&$value) {
            if (is_string($value)) {
                $value = e($value);
            }
        });

        return $this->factory->make($data, $status, $headers);
    }
Generate a JSON response.

@param  array $data
@param  int   $status
@param  array $headers
@return \Illuminate\Http\JsonResponse