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\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 = [];
|
||||
|
||||
Reference in new issue
Block a user