Betaspi Grapper Bet365 per sport
This commit is contained in:
1 parent
1ac74e3e4f
commit
676eecd3ca
15 files changed
+513
-356
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\DbMapper\Store;
|
||||
|
||||
use App\Models\CompetitionGroupProvider;
|
||||
|
||||
class StoreGroup
|
||||
{
|
||||
public static function store(&$mapper)
|
||||
{
|
||||
$group = [];
|
||||
$group['sport_id'] = $mapper['sport_id'];
|
||||
$group['competition_group_id'] = $mapper['txodds_group_id'];
|
||||
$group['provider_id'] = $mapper['provider_id'];
|
||||
$group['name'] = $mapper['group'];
|
||||
|
||||
CompetitionGroupProvider::updateOrCreate(['provider_group_id' => (int) $mapper['group_id']], $group);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user