Browse Source

edit dealer

hajar
Siti Hajar Ibrahim 4 years ago
parent
commit
85b0fce323
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/Http/Controllers/Controller.php

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

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


return $dealer . $details ; return $dealer . $details ;

Loading…
Cancel
Save