wip countries

This commit is contained in:
salam committed 2025-08-30 08:15:10 +02:00
1 parent 641b362752
commit 1b9a65b25a
23 files changed
+127755 -27137

No files matched your search

@@ -0,0 +1,24 @@
<?php
namespace App\Console\Commands\Grapper\TxOdds\Fixtures;
use App\Models\Liga;
class TxLiga
{
public static function find($country_id, $group)
{
$cname = array_column($group, 'cname');
$spid = array_column($group, 'spid');
$cgid = array_column($group, 'cgid');
$liga = Liga::firstOrCreate([
'name' => (string) $cname[0],
'sport_id' => (int) $spid[0],
'country_id' => $country_id,
'txodds_id' => (int) $cgid[0],
]);
return $liga->id;
}
}