From 901e566790c083beca5c0374ed1954089d31f64b Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 21 May 2026 18:27:24 +0200 Subject: [PATCH] wip --- app/Actions/Statistics/LoadEventsAspGoal.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Actions/Statistics/LoadEventsAspGoal.php b/app/Actions/Statistics/LoadEventsAspGoal.php index 8e5ec731..ecf1fdb3 100644 --- a/app/Actions/Statistics/LoadEventsAspGoal.php +++ b/app/Actions/Statistics/LoadEventsAspGoal.php @@ -4,6 +4,8 @@ namespace App\Actions\Statistics; use App\Models\StatisticFixtures; use App\Models\StatistikoEvent; +use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Log; class LoadEventsAspGoal { @@ -79,6 +81,8 @@ class LoadEventsAspGoal /** * STATISTIC DATA */ + DB::connection()->enableQueryLog(); + $res = StatistikoEvent::when($league_id, function ($query) use ($league_id) { return $query->where('league_id', $league_id); })->when($team_id, function ($query) use ($team_id, $team_position) { @@ -101,7 +105,8 @@ class LoadEventsAspGoal }) ->get(); - dd($res); + $queries = DB::getQueryLog(); + Log::info($queries); $datasets = []; $labels = [];