/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $sprints = Sprint::lists('id', 'id'); $us_stories = Userstory::lists('description', 'id'); $predecessors = Tache::lists('code', 'code'); $tache = new Tache(); $id = $tache->right($this->getRedirectUrl(), 1); return view('taches.create', compact('sprints', 'us_stories', 'id', 'predecessors')); }