public function delete($id, IndexListener $listener)
    {
        try {
            $model = $this->repository->makeModel()->findOrFail($id);
            $model->delete();
            return $listener->deleteSuccess();
        } catch (Exception $ex) {
            return $listener->deleteFailed();
        }
    }
public function delete($id, IndexListener $listener)
    {
        try {
            $model = $this->repository->makeModel()->findOrFail($id);
            $model->delete();
            return $listener->deleteSuccess();
        } catch (Exception $ex) {
            return $listener->deleteFailed();
        }
    }
public function delete ( $ id , IndexListener $ listener ) { try { $ model = $ this -> repository -> makeModel ( ) -> findOrFail ( $ id ) ; $ model -> delete ( ) ; return $ listener -> deleteSuccess ( ) ; } catch ( Exception $ ex ) { return $ listener -> deleteFailed ( ) ; } }
deletes custom notification

@param mixed $id
@param IndexListener $listener
@return RedirectResponse
deletes custom notification