/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $sprints = Sprint::lists('id', 'id'); $us_stories = Userstory::lists('description', 'id'); $tache = Tache::findOrNew($id); $predecessors = Tache::lists('code', 'code'); return view('taches.edit', compact('tache', 'sprints', 'us_stories', 'predecessors')); }