public function delete() { if ($this->model->isSoftDeleting()) { return $this->softDelete(); } else { return $this->query->delete(); } }
/** * Force a delete on a set of soft deleted models. * * @return int */ public function forceDelete() { return $this->query->delete(); }