modifications details

This commit is contained in:
salam committed 2026-07-28 21:37:18 +02:00
1 parent c143dcf727
commit c1892e86aa
21 files changed
+99 -108

No files matched your search

+25 -16
View File
@@ -24,26 +24,35 @@ class ImportDetails
if ($row[1] != '') {
// 'ss_player_id',
// 'player_name',
// 'tx_team_id',
// 'ss_national_team_id',
// 'team_name',
// 'birthday',
// 'height',
// 'nationality',
// 'position',
// 'preferred_foot',
// 'last_update',
// 'created_at',
// 'updated_at',
StatistikoDetail::updateOrCreate(
[
'tm_player_id' => (int) $row[0],
'ss_player_id' => (int) $row[0],
],
[
'name' => $row[1],
'birthdate' => Carbon::parse($row[2])->toDateString(),
'height' => $row[3],
'nationality' => $row[4],
'position' => $row[5],
'sport_radar_id' => $row[6],
'id_squadra_tm' => $row[7],
'full_name' => $row[8],
'no_specialities' => $row[9],
'txodds_id' => $row[10],
'national_team_id' => $row[11],
'last_update' => Carbon::parse($row[12])->toDateString(),
'league_code' => $row[13],
'team_code' => $row[14],
'team_name' => $row[15],
'player_name' => $row[1],
'tx_team_id' => $row[2],
'ss_national_team_id' => $row[3],
'team_name' => $row[4],
'birthdate' => Carbon::parse($row[5])->toDateString(),
'height' => $row[6],
'nationality' => $row[7],
'position' => $row[8],
'preferred_foot' => $row[9],
'last_update' => Carbon::parse($row[10])->toDateString(),
'created_at' => $now,
'updated_at' => $now,
]
+1 -1
View File
@@ -77,7 +77,7 @@ class ImportPlayer
'penaltyshoutout_missed',
'player_position',
'playerrating_value',
'tm_player_id'
'ss_player_id'
];
SimpleExcelReader::create(storage_path('app/public/' . $filePath))