wip sudamerica comppa e ueva coppas

This commit is contained in:
salam committed 2026-10-22 17:16:48 +02:00
1 parent b20fcb0034
commit 54bbb420ec
5 files changed
+14 -5

No files matched your search

@@ -3,12 +3,14 @@
namespace App\Actions;
use App\Models\StatisticFixtures;
use Illuminate\Support\Carbon;
class LoadStatisticFixturesLeaguesOptions
{
public static function load(?int $sofascore_category_id = 0)
{
$res = StatisticFixtures::with('league')
->where('starttime', '>=', Carbon::now())
->whereHas('league', function ($query) use ($sofascore_category_id) {
$query->where('sofa_score_category_id', $sofascore_category_id);
})