소스 검색

get-database

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

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

@@ -151,10 +151,13 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$work_order = WorkOrder::where('wo',$request->wo)->first();
$staff = StaffDetail::where('_id', '5b026377ee0dc2b707473b5a')->first();
$staff = Staff::with('staffdetail')->where('email', 'dealer@test.my')->first();
$company = Company::where('name', 'TNBX Sdn Bhd')->first();
$staff->company_id = $company->_id;
$staff->staffdetail->company_id = $company->_id;
$staff->save();

return $work_order . $staff;
return $staff;
}

public function adjustInstaller(Request $request){

Loading…
취소
저장