wip
This commit is contained in:
1 parent
c394f7afba
commit
44af3f2caa
21 files changed
+222
-151
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\SofaScoreTournament;
|
||||
use App\Models\StatisticFixtures;
|
||||
|
||||
class LoadStatisticFixturesLeaguesOptions
|
||||
@@ -13,10 +13,10 @@ class LoadStatisticFixturesLeaguesOptions
|
||||
->groupBy('league_id')
|
||||
->pluck('league_id')->toArray();
|
||||
|
||||
$cnt = CompetitionGroup::with('country')->whereIn('id', $res)->get();
|
||||
$cnt = SofaScoreTournament::with('sofascore_category')->whereIn('tournament_id', $res)->get();
|
||||
$arr = [];
|
||||
foreach ($cnt as $val) {
|
||||
$arr[$val->id] = $val->country->name . ' ' . $val->name;
|
||||
$arr[$val->tournament_id] = $val->sofascore_category->name . ' ' . $val->name;
|
||||
}
|
||||
|
||||
asort($arr);
|
||||
|
||||
Reference in new issue
Block a user