소스 검색

Buang installer id pada Pending Contractor

hajar
Siti Hajar Ibrahim 5 년 전
부모
커밋
da91712ec4
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6
    3
      app/Http/Controllers/Controller.php

+ 6
- 3
app/Http/Controllers/Controller.php 파일 보기

@@ -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();
}
}
}

Loading…
취소
저장