protected function postRequest() { $task = $this->repository->insert(['bug_id' => $this->bug_id, 'description' => $this->description]); $this->sendJSON($task); }