wip
This commit is contained in:
1 parent
ad45880506
commit
8d4dad49ae
1 file changed
+4
@@ -6,6 +6,7 @@ use App\Models\StatistikoDetail;
|
|||||||
use App\Models\StatistikoEvent;
|
use App\Models\StatistikoEvent;
|
||||||
use App\Models\StatistikoPlayer;
|
use App\Models\StatistikoPlayer;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
trait PlayerQuery
|
trait PlayerQuery
|
||||||
{
|
{
|
||||||
@@ -23,6 +24,9 @@ trait PlayerQuery
|
|||||||
$this->season_selected = $this->getCurrentSeason();
|
$this->season_selected = $this->getCurrentSeason();
|
||||||
// dd($this->liga_id, $this->season_selected);
|
// dd($this->liga_id, $this->season_selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log::debug('season_selected', [$this->season_selected]);
|
||||||
|
|
||||||
$matches_ids = match ($part) {
|
$matches_ids = match ($part) {
|
||||||
1 => StatistikoEvent::where('league_id', $this->liga_id)
|
1 => StatistikoEvent::where('league_id', $this->liga_id)
|
||||||
->when($this->season_selected, function ($query) {
|
->when($this->season_selected, function ($query) {
|
||||||
|
|||||||
Reference in new issue
Block a user