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\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 = [];