protected function createResponse($content, $status, array $header) { $response = Response::make($content, $status); foreach ($header as $key => $value) { $response->header($key, $value); } return $response; }