This commit is contained in:
salam committed 2026-07-30 18:57:44 +02:00
1 parent c394f7afba
commit 44af3f2caa
21 files changed
+222 -151

No files matched your search

@@ -23,6 +23,7 @@ class ImportDetails
$row = array_values($row);
// ss_player_id
//
// ss_team_id
// tx_team_id
// player_name
+2 -6
View File
@@ -77,7 +77,7 @@ class ImportPlayer
'penaltyshoutout_missed',
'player_position',
'playerrating_value',
'ss_player_id'
'tm_player_id'
];
SimpleExcelReader::create(storage_path('app/public/' . $filePath))
@@ -89,15 +89,12 @@ class ImportPlayer
$row = array_values($row);
$sport_id = 1;
$match_id = 0;
$ss_player_id = 0;
$update_array = [];
foreach ($fieldnames as $key => $name) {
if ($key == 0)
$sport_id = (int) $row[$key];
else if ($key == 1)
if ($key == 1)
$match_id = (int) $row[$key];
else if ($key == 2)
$ss_player_id = (int) $row[$key];
@@ -107,7 +104,6 @@ class ImportPlayer
StatistikoPlayer::updateOrCreate(
[
'sport_id' => $sport_id,
'match_id' => $match_id,
'ss_player_id' => $ss_player_id,
],