Explorar el Código

get all wo with null status

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

+ 1
- 3
app/Http/Controllers/Controller.php Ver fichero

@@ -149,9 +149,7 @@ class Controller extends BaseController

public function getDatabase()
{
$wo = WorkOrder::where('wo','WO-15141')->first();
$wo->status = "Pending Contractor";
$wo->save();
$wo = WorkOrder::where('status','')->get();

return $wo;
}

Cargando…
Cancelar
Guardar