Browse Source

nak tengok db

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

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

@@ -132,15 +132,13 @@ class Controller extends BaseController

public function tukarCompanyTest()
{
// $dealer = Staff::where('email', 'dealer@test.my')->first();
$dealer = Staff::where('email', 'izzati@econexttech.com.my')->first();
// $dealer->company_id = "5c36baf2ded8f6068d769952";
// $dealer->save();
// $details = StaffDetail::where('_id',$dealer->_id)->first();
$details = StaffDetail::where('_id',$dealer->_id)->first();
// $details->company_id = "5c36baf2ded8f6068d769952";
// $details->save();

$dealer_claimAll = DealerClaim::where('dealer', '5c36baf2ded8f6068d769952')->orderBy('activated_dt', 'desc')->get();

return $dealer_claimAll;
return $dealer . $details ;
}
}

Loading…
Cancel
Save