src/Http/Responses/Decorators/StatusCodeDecorator.php
public function make(array $data, int $status, array $headers = []): JsonResponse
    {
        return $this->factory->make(array_merge([
            'status' => $status,
        ], $data), $status, $headers);
    }
public function make(array $data, int $status, array $headers = []): JsonResponse
    {
        return $this->factory->make(array_merge([
            'status' => $status,
        ], $data), $status, $headers);
    }
Generate a JSON response.

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