20 lines
391 B
PHP
20 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages\Selections;
|
|
|
|
use App\Models\SofaScoreCategory;
|
|
use App\Models\StatistikoEvent;
|
|
|
|
class LoadSeasons
|
|
{
|
|
public static function load($league_id)
|
|
{
|
|
if(!$league_id){
|
|
return [];
|
|
}
|
|
|
|
return StatistikoEvent::query()->where('league_id', $league_id)->groupBy('season')->pluck('season','season')->toArray();
|
|
|
|
}
|
|
}
|