/**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @return Response
  */
 public function update(NavigationForm $request, $id)
 {
     try {
         if (Navigation::find($id)->update($request->all())) {
             Notification::success('修改成功');
         }
         return redirect()->route('backend.nav.index');
     } catch (\Exception $e) {
         return redirect()->back()->withErrors(array('error' => $e->getMessage()))->withInput();
     }
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     //
     return backendView('edit', ['nav' => Navigation::find($id)]);
 }