/** * Detach relation from parent * * @param array $ids id's of relations to detach from parent * * @return array|bool */ public function detach(array $ids) { $this->postResourceKey = implode(',', $ids); $promises = ['base' => $this->client->deleteAsync($this->getEndpoint())]; $response = $this->send($promises); $this->model->clearAttribute($this->postResource); return $response['base']->getStatusCode() === 204; }