| @@ -120,8 +120,11 @@ class Controller extends BaseController | |||
| public function getDatabase(Request $request) | |||
| { | |||
| $staff = Staff::where('api_token', null)->where('roles_access', 'Installer')->get(); | |||
| return $staff; | |||
| $wo = WorkOrder::where('installer_id', '5fb1e673a1f29b49f9087a48')->where('status', 'like', '%Pending%')->get(); | |||
| foreach ($wo as $w) { | |||
| $w->status = "Pending Contractor"; | |||
| $w->installer_id = ""; | |||
| $w->save(); | |||
| } | |||
| } | |||
| } | |||