default values service
This commit is contained in:
1 parent
24dbbd7fea
commit
fe7fc0accf
6 files changed
+115
-41
No files matched your search
@@ -5,7 +5,6 @@ namespace App\Actions;
|
||||
use App\Models\MultilineClient;
|
||||
use App\Models\MultilineSetting;
|
||||
use Filament\Notifications\Notification;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class MultilineGenerator
|
||||
{
|
||||
@@ -25,17 +24,10 @@ class MultilineGenerator
|
||||
|
||||
for ($i = 1; $i <= 4; $i++) {
|
||||
|
||||
$setting = [];
|
||||
$setting['client_id'] = $client_id;
|
||||
$setting['sport_id'] = $sport_id;
|
||||
$setting['multiline_setting_id'] = $multiline->id;
|
||||
$setting['position'] = $i;
|
||||
|
||||
DB::table('multiline_clients')->updateOrInsert($setting, [
|
||||
'bookmaker_id' => $bookmaker[$i],
|
||||
'sort' => $i,
|
||||
'disabled' => 0,
|
||||
]);
|
||||
MultilineClient::updateOrInsert(
|
||||
['client_id' => $client_id, 'sport_id' => $sport_id, 'multiline_setting_id' => $multiline->id, 'position' => $i],
|
||||
['bookmaker_id' => $bookmaker[$i], 'sort' => $i, 'disabled' => 0]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user