partner programm completed
This commit is contained in:
1 parent
84bfa248cd
commit
a883ccf0ea
22 files changed
+722
-28
No files matched your search
@@ -24,8 +24,15 @@ class KontoSwitcher extends Component
|
||||
$bookmakers = Client::where('id', $client_id)->pluck('bookmaker')->first();
|
||||
|
||||
$bookmaker_id = array_shift($bookmakers);
|
||||
$partner_bookmaker_id = array_shift($bookmakers) ?? 0;
|
||||
|
||||
User::where('id', auth()->user()->id)->update(['sport_id' => 1, 'provider_id' => $provider_id, 'bookmaker_id' => $bookmaker_id, 'client_id' => $client_id]);
|
||||
User::where('id', auth()->user()->id)->update([
|
||||
'sport_id' => 1,
|
||||
'provider_id' => $provider_id,
|
||||
'bookmaker_id' => $bookmaker_id,
|
||||
'partner_bookmaker_id' => $partner_bookmaker_id,
|
||||
'client_id' => $client_id,
|
||||
]);
|
||||
|
||||
$this->js('window.location.reload()');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user