/** * destroy * * delete a record * * @param $ids * * @return mixed */ public function destroy($ids) { $idList = is_array($ids) ? $ids : [$ids]; return $this->model->destroy($idList); }
/** * @param $id * @return mixed */ public function delete($id) { return $this->model->destroy($id); }