/**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     if (Navigation::isChildNav($id)) {
         Notification::error('该导航包含子导航,请先删除');
     } else {
         try {
             Navigation::destroy($id);
             Notification::success('删除成功');
         } catch (\Exception $e) {
             Notification::error($e->getMessage());
         }
     }
     return redirect()->route('backend.nav.index');
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     try {
         Navigation::destroy($id);
         Notification::success('删除成功');
     } catch (\Exception $e) {
         Notification::error($e->getMessage());
     }
     return redirect()->route('backend.nav.index');
 }