wip
This commit is contained in:
1 parent
49b1eba348
commit
9ca5657827
28 files changed
+288
-234
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Models\Provider;
|
||||
use App\Models\Sport;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
@@ -38,7 +39,9 @@ class TopMenuItems extends Component
|
||||
|
||||
public function swopBookmaker($bookmaker_id)
|
||||
{
|
||||
User::where('id', auth()->user()->id)->update(['bookmaker_id' => $bookmaker_id]);
|
||||
$provider_id = Provider::where('bookmaker_id', $bookmaker_id)->value('id');
|
||||
|
||||
User::where('id', auth()->user()->id)->update(['provider_id' => $provider_id, 'bookmaker_id' => $bookmaker_id]);
|
||||
|
||||
$this->js('window.location.reload()');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user