Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public function run()
 {
     DB::table('tipos_telefonos')->truncate();
     TipoTelefono::create(array('nombre' => 'Móvil'));
     TipoTelefono::create(array('nombre' => 'Casa'));
     TipoTelefono::create(array('nombre' => 'Fax'));
 }
Exemplo n.º 3
0
 public function getTiposTelefonos()
 {
     $tipos_telefonos = TipoTelefono::all();
     return $tipos_telefonos;
 }