wip
This commit is contained in:
1 parent
a3e449e266
commit
901e566790
1 file changed
+6
-1
@@ -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 = [];
|
||||||
|
|||||||
Reference in new issue
Block a user