public function deleteById($model_id) { $model = $this->getById($model_id); return $model->delete(); }
/** * Remove the specified model from storage. * * @param int $model_id * * @return array */ public function destroy($model_id) { $this->repository->deleteById($model_id); return ['success' => true]; }