This commit is contained in:
salam committed 2026-05-21 18:27:24 +02:00
1 parent a3e449e266
commit 901e566790
1 file changed
+6 -1
+6 -1
View File
@@ -4,6 +4,8 @@ namespace App\Actions\Statistics;
use App\Models\StatisticFixtures; use App\Models\StatisticFixtures;
use App\Models\StatistikoEvent; use App\Models\StatistikoEvent;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class LoadEventsAspGoal class LoadEventsAspGoal
{ {
@@ -79,6 +81,8 @@ class LoadEventsAspGoal
/** /**
* STATISTIC DATA * STATISTIC DATA
*/ */
DB::connection()->enableQueryLog();
$res = StatistikoEvent::when($league_id, function ($query) use ($league_id) { $res = StatistikoEvent::when($league_id, function ($query) use ($league_id) {
return $query->where('league_id', $league_id); return $query->where('league_id', $league_id);
})->when($team_id, function ($query) use ($team_id, $team_position) { })->when($team_id, function ($query) use ($team_id, $team_position) {
@@ -101,7 +105,8 @@ class LoadEventsAspGoal
}) })
->get(); ->get();
dd($res); $queries = DB::getQueryLog();
Log::info($queries);
$datasets = []; $datasets = [];
$labels = []; $labels = [];