/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $this->webpage['whereAmI'] .= $this->listOneBreadcrumb('editar localidad', '', 1); $this->webpage['tab_title'] = 'Editar - Localidad'; $departamentos = Departamento::listByFullName(); $localidad = Localidad::with('departamento')->with('departamento.provincia')->with('departamento.provincia.pais')->findOrFail($id); $data = array_merge(['webpage' => $this->webpage, 'departamentos' => $departamentos, 'localidad' => $localidad], $this->data); return view('admin.cities.localidades.edit', $data); }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $whereAmI = $this->ruta . $this->listOneBreadcrumb('editar localidad', '', 1); $departamentos = Departamento::listByFullName(); $localidad = Localidad::with('departamento')->with('departamento.provincia')->with('departamento.provincia.pais')->findOrFail($id); $donde_estoy[0] = \HTML::entities(\Html::linkRoute('cities.localidades.index', 'localidades')); $data = ['whereAmI' => $whereAmI, 'departamentos' => $departamentos, 'donde_estoy' => $donde_estoy, 'localidad' => $localidad]; return view('admin.cities.localidades.edit', $data); }