wip
This commit is contained in:
1 parent
087b0a2a1a
commit
90b1dfdc4f
6 files changed
+57
-40
No files matched your search
@@ -7,7 +7,7 @@ use App\Models\StatisticFixtures;
|
||||
|
||||
class LoadStatisticFixturesLeaguesOptions
|
||||
{
|
||||
public static function load($sport_id)
|
||||
public static function load(int $sport_id)
|
||||
{
|
||||
$res = StatisticFixtures::where('sport_id', $sport_id)
|
||||
->groupBy('league_id')
|
||||
@@ -16,7 +16,7 @@ class LoadStatisticFixturesLeaguesOptions
|
||||
$cnt = CompetitionGroup::with('country')->whereIn('id', $res)->get();
|
||||
$arr = [];
|
||||
foreach ($cnt as $val) {
|
||||
$arr[$val->id] = $val->country->name.' '.$val->name;
|
||||
$arr[$val->id] = $val->country->name . ' ' . $val->name;
|
||||
}
|
||||
|
||||
asort($arr);
|
||||
|
||||
Reference in new issue
Block a user