/** * Removes event from the local database calendar and then removes it from * the API calendar. * * @param $api_id * * @return mixed */ public function destroyByApiId($api_id) { $this->model->where('api_id', $api_id)->delete(); return $this->eventApi->destroy($api_id); }
/** * Sets the calendar ID for the current event API. * * @param string $id * * @return $this */ public function setCalendarId($id) { $this->eventApi->setCalendar($id); return $this; }