public function deleteKey($id) { if (empty(',')) { $key = Key::find($id); if (is_null($key)) { return $this->notFound(); } $key = Key::destroy($id); if ($key) { return $this->httpOk(); } } else { $key = Key::find(explode(',', $id)); if (is_null($key)) { return $this->httpNotFound(); } $key = Key::destroy(explode(',', $id)); if ($key) { return $this->httpOk(); } } }