コード例 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function getEdit($id)
 {
     $this->data["module"] = "Datos del Cliente";
     $data["phones"] = TipoTelefono::all();
     $data["plans"] = PlanPago::all();
     $data["civil_status"] = EstadoCivil::all();
     $persona = Persona::with('cliente', 'cliente.colonia')->find($id);
     $data['persona'] = $persona;
     $data["cliente"] = $persona->cliente;
     $data["edit"] = true;
     return View::make($this->department . ".main", $this->data)->nest('child', 'formularios.cliente', $data);
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  * GET /estadocivils
  *
  * @return Response
  */
 public function index()
 {
     return EstadoCivil::all();
 }