statistic filter player grafics wip
This commit is contained in:
1 parent
4de73f9275
commit
3bc956e0b9
5 files changed
+93
-29
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\StatisticFixtures;
|
||||
|
||||
class LoadStatisticFixturesMatchOptions
|
||||
{
|
||||
public static function load($league_id)
|
||||
{
|
||||
if (! $league_id) {
|
||||
return [];
|
||||
}
|
||||
$res = StatisticFixtures::where('league_id', $league_id)->get();
|
||||
|
||||
foreach ($res as $val) {
|
||||
$arr[$val->id] = $val->home->name.' vs '.$val->away->name;
|
||||
}
|
||||
|
||||
return $arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user