/** * 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')); }