public function delete($id, $hardDelete = false){
        if($hardDelete){
            return $this->model->withTrashed()->find($id)->forceDelete($id);
        }
        return $this->model->find($id)->delete($id);
    }