/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id, CategorieRequest $request)
 {
     //
     $categorie = ForumCategorie::findOrFail($id);
     $categorie->setNom($request->input('cat_nom'));
     $categorie->update();
     return redirect('forum');
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $forum = ForumForum::findOrFail($id);
     $categories = ForumCategorie::all()->lists('cat_nom', 'id');
     $rangs = ForumRang::all()->lists('rang_nom', 'id');
     return view('forum.editForum')->with(compact('forum', 'categories', 'rangs'));
 }