예제 #1
0
 public function getDepartamentos()
 {
     return Departamento::All();
 }
예제 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $ciudad = \App\Ciudad::find($id);
     $departamento = \App\Departamento::All()->lists('nombreDepartamento', 'idDepartamento');
     return view('ciudad', compact('departamento'), ['ciudad' => $ciudad]);
 }