/** * Show the form for editing the specified hotel. * * @param int $id * @return Response */ public function edit($id) { $hotel = Hotel::with('caracteristicas')->find($id); $paises = Pais::lists("name", "id"); $caracteristicas = Caracteristica::where('publicado', '=', 1)->get(); return View::make('admin.hotel.edit', compact('hotel', 'paises', 'caracteristicas')); }
/** * Show the form for editing the specified apt. * * @param int $id * @return Response */ public function edit($id) { $apartamento = Apartamento::with('caracteristicas')->find($id); $paises = Pais::lists("name", "id"); $caracteristicas = Caracteristica::where('publicado', '=', 1)->get(); return View::make('admin.apartamento.edit', compact('apartamento', 'paises', 'caracteristicas')); }