public function updateNotice($notice_id, $input) { $results = []; try { $results = $this->notification_model->findOrFail($notice_id); $results->update($input); } catch (\Exception $e) { $message = sprintf("Error updating notice %s", $e->getMessage()); $this->throw_and_log_error($message); } return $results; }