wip sudamerica comppa e ueva coppas
This commit is contained in:
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);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user