wip details
This commit is contained in:
1 parent
62c3f80256
commit
8c372e38ef
12 files changed
+60
-55
No files matched your search
@@ -22,37 +22,34 @@ class ImportDetails
|
||||
|
||||
$row = array_values($row);
|
||||
|
||||
// ss_player_id
|
||||
// ss_team_id
|
||||
// tx_team_id
|
||||
// player_name
|
||||
// ss_national_team_id
|
||||
// birthdate
|
||||
// height
|
||||
// nationality
|
||||
// position
|
||||
// preferred_foot
|
||||
// last_update
|
||||
|
||||
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(
|
||||
[
|
||||
'ss_player_id' => (int) $row[0],
|
||||
],
|
||||
[
|
||||
'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],
|
||||
'ss_team_id' => (int) $row[1],
|
||||
'tx_team_id' => (int) $row[2],
|
||||
'player_name' => $row[3],
|
||||
'ss_national_team_id' => (int) $row[4],
|
||||
'birthdate' => Carbon::parse($row[5])->format('Y-m-d'),
|
||||
'height' => (int) $row[6],
|
||||
'nationality' => $row[7],
|
||||
'position' => $row[8],
|
||||
'preferred_foot' => $row[9],
|
||||
'last_update' => Carbon::parse($row[10])->toDateString(),
|
||||
'last_update' => Carbon::parse($row[10])->format('Y-m-d H:i:s'),
|
||||
'created_at' => $now,
|
||||
'updated_at' => $now,
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user