This commit is contained in:
salam committed 2026-10-31 19:32:23 +01:00
1 parent ad45880506
commit 8d4dad49ae
1 file changed
+4
+4
View File
@@ -6,6 +6,7 @@ use App\Models\StatistikoDetail;
use App\Models\StatistikoEvent;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Log;
trait PlayerQuery
{
@@ -23,6 +24,9 @@ trait PlayerQuery
$this->season_selected = $this->getCurrentSeason();
// dd($this->liga_id, $this->season_selected);
}
Log::debug('season_selected', [$this->season_selected]);
$matches_ids = match ($part) {
1 => StatistikoEvent::where('league_id', $this->liga_id)
->when($this->season_selected, function ($query) {