wip
This commit is contained in:
1 parent
704aa6650c
commit
ddc0e03abd
4 files changed
+74
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Imports\Helper;
|
||||
|
||||
use App\Actions\PlayerPerSeason;
|
||||
use App\Models\StatistikoDetail;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\LazyCollection;
|
||||
@@ -58,5 +59,8 @@ class ImportDetails
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**update statistic player tabel */
|
||||
PlayerPerSeason::run();
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Imports\Helper;
|
||||
|
||||
use App\Actions\PlayerPerSeason;
|
||||
use App\Models\StatistikoPlayer;
|
||||
use Illuminate\Support\LazyCollection;
|
||||
use Spatie\SimpleExcel\SimpleExcelReader;
|
||||
@@ -111,5 +112,8 @@ class ImportPlayer
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
/**update statistic player tabel */
|
||||
PlayerPerSeason::run();
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,9 @@ class LoadPlayer
|
||||
|
||||
$matches_count = count($matches);
|
||||
|
||||
// dd($matches_count);
|
||||
|
||||
|
||||
$positions_map = LoadPositions::load();
|
||||
|
||||
// needs to run daily for pre-calculaton
|
||||
@@ -63,6 +66,7 @@ class LoadPlayer
|
||||
$colorlevel = round($matches_count / 3);
|
||||
|
||||
$preferred_foot = $val->details->preferred_foot;
|
||||
|
||||
$player_position = ' (Role ' . $val->details->position . ')';
|
||||
|
||||
if (in_array($val->details->position, $positions_map['MIDFIELD'])) {
|
||||
|
||||
Reference in new issue
Block a user