/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $alquilers = Alquiler::find($id); $clientes = Cliente::orderBy('nombre', 'asc')->lists('nombre', 'id'); $movies = Movie::orderBy('titulo', 'asc')->lists('titulo', 'id'); return view('alquiler.edit', compact('alquilers', 'clientes', 'movies')); }