diff --git a/app/Filament/Widgets/Data/PlayerLoad.php b/app/Filament/Widgets/Data/PlayerLoad.php index 432a1ef2..bc09e198 100644 --- a/app/Filament/Widgets/Data/PlayerLoad.php +++ b/app/Filament/Widgets/Data/PlayerLoad.php @@ -51,8 +51,8 @@ class PlayerLoad $player_on_field = $filter['player_on_field']; - if ($this->$last_query) { - $res = $this->$last_query; + if (self::$last_query) { + $res = self::$last_query; } else { $res = StatistikoPlayer::with('event')->where('tm_player_id', $tm_player_id) @@ -84,7 +84,7 @@ class PlayerLoad })->get(); - $this->$last_query = $res; + self::$last_query = $res; } $statistic_type = $filter['statistic_type'] ?? 0;