Skip to content

Commit

Permalink
Improved Photo on DemoSeeder
Browse files Browse the repository at this point in the history
  • Loading branch information
MGeurts committed Dec 29, 2024
1 parent 727e386 commit e920b42
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 3 deletions.
4 changes: 2 additions & 2 deletions database/seeders/DemoSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function importBritishRoyalsPeople(): void
'yod' => ! empty($person['yod']) ? $person['yod'] : null,
'pod' => ! empty($person['death_place']) ? $person['death_place'] : null,

'photo' => $person['id'] . '_001_demo.webp',
'photo' => ! empty($person['photo']) ? $person['id'] . '_001_demo.webp' : null,

'team_id' => $this->british_royals_team,
]);
Expand Down Expand Up @@ -377,7 +377,7 @@ protected function importKennedyPeople(): void
'yod' => ! empty($person['yod']) ? $person['yod'] : null,
'pod' => ! empty($person['death_place']) ? $person['death_place'] : null,

'photo' => $person['id'] . '_001_demo.webp',
'photo' => ! empty($person['photo']) ? $person['id'] . '_001_demo.webp' : null,

'team_id' => $this->kennedy_team,
]);
Expand Down
Loading

0 comments on commit e920b42

Please sign in to comment.