SofaScorePlayerPerSeason alst180days also in PlayerCalculator
This commit is contained in:
1 parent
b89372e0c2
commit
407f773dec
2 files changed
+7
-2
No files matched your search
@@ -12,8 +12,8 @@ class PlayerCalculator extends Component
|
||||
{
|
||||
$positions_map = LoadPositions::load();
|
||||
|
||||
$player = SofaScorePlayerPerSeason::with('details')->where('season', '=', 'total')->where('ss_team_id', '=', $team_id)->get();
|
||||
|
||||
// $player = SofaScorePlayerPerSeason::with('details')->where('season', '=', 'total')->where('ss_team_id', '=', $team_id)->get();
|
||||
$player = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('average_min', '>', 0)->where('ss_team_id', $team_id)->get();
|
||||
$result = [];
|
||||
foreach ($player as $val) {
|
||||
if ($val->details != null && $val->details->is_active) {
|
||||
|
||||
Reference in new issue
Block a user