Explorar el Código

delete claim november

master
Siti Hajar Ibrahim hace 5 años
padre
commit
05ef922d23
Se han modificado 1 ficheros con 5 adiciones y 6 borrados
  1. 5
    6
      app/Http/Controllers/Controller.php

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

@@ -121,12 +121,11 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$staff = Staff::where('email','dealer@test.my')->first();
$staff->company_id = "5bb2bc66ee0dc2271c6fedf6";
$staff->save();
$claim = DealerClaim::where('activated_my', '11/2020')->get();

$details = StaffDetail::where('_id',$staff->_id)->first();
$details->company_id = "5bb2bc66ee0dc2271c6fedf6";
$details->save();
foreach ($claim as $key => $c) {
# code...
$c->forceDelete();
}
}
}

Cargando…
Cancelar
Guardar