Browse Source

nak tengok db

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

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

@@ -132,12 +132,12 @@ class Controller extends BaseController

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

return $dealer . $details ;
}

Loading…
Cancel
Save