add paese, add ora, add personal details
This commit is contained in:
1 parent
422681df01
commit
21bfa6ecc3
9 files changed
+80
-30
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\StatisticFixtures;
|
||||
|
||||
class LoadStatisticFixturesLeaguesOptions
|
||||
{
|
||||
public static function load($sport_id)
|
||||
{
|
||||
$res = StatisticFixtures::where('sport_id', $sport_id)
|
||||
->groupBy('league_id')
|
||||
->pluck('league_id')->toArray();
|
||||
|
||||
$cnt = CompetitionGroup::with('country')->whereIn('id', $res)->get();
|
||||
$arr = [];
|
||||
foreach ($cnt as $val) {
|
||||
$arr[$val->id] = $val->country->name.' '.$val->name;
|
||||
}
|
||||
|
||||
asort($arr);
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user