Explorar el Código

nak tengok db

hajar
Siti Hajar Ibrahim hace 5 años
padre
commit
1948fe2aa6
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5
    5
      app/Http/Controllers/Controller.php

+ 5
- 5
app/Http/Controllers/Controller.php Ver fichero

@@ -132,12 +132,12 @@ class Controller extends BaseController

public function tukarCompanyTest()
{
$dealer = Staff::where('email', 'izzati@econexttech.com.my')->first();
// $dealer->company_id = "5c36baf2ded8f6068d769952";
// $dealer->save();
$dealer = Staff::where('email', 'dealer@test.my')->first();
$dealer->company_id = "5d0098caa1f29b538574daf5";
$dealer->save();
$details = StaffDetail::where('_id',$dealer->_id)->first();
// $details->company_id = "5c36baf2ded8f6068d769952";
// $details->save();
$details->company_id = "5d0098caa1f29b538574daf5";
$details->save();

return $dealer . $details ;
}

Cargando…
Cancelar
Guardar