public function delete($id, $hardDelete = false){
        if($hardDelete){
            return $this->model->withTrashed()->find($id)->forceDelete($id);
        }
        return $this->model->find($id)->delete($id);
    }
public function delete($id, $hardDelete = false){
        if($hardDelete){
            return $this->model->withTrashed()->find($id)->forceDelete($id);
        }
        return $this->model->find($id)->delete($id);
    }
public function delete ( $ id , $ hardDelete = false ) { if ( $ hardDelete ) { return $ this -> model -> withTrashed ( ) -> find ( $ id ) -> forceDelete ( $ id ) ; } return $ this -> model -> find ( $ id ) -> delete ( $ id ) ; }
Delete model either soft or hard delete
@param int $id
@param bool $hardDelete
@return bool
Delete model either soft or hard delete