Browse Source

get all wo with null status

hajar
Siti Hajar Ibrahim 5 years ago
parent
commit
9cfe34d4c2
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      app/Http/Controllers/Controller.php

+ 1
- 3
app/Http/Controllers/Controller.php View File



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


return $wo; return $wo;
} }

Loading…
Cancel
Save