self::last_query wip
This commit is contained in:
1 parent
33111fe604
commit
a48c614907
1 file changed
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user