From 230ea57ce0d79ca2763fed5ecd595ea7b85a0ab0 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Wed, 1 Jul 2026 16:05:55 -0300 Subject: [PATCH] feat: add TenantSeeder to initialize sonder tenant with header logo asset --- database/seeders/TenantSeeder.php | 19 +++++++++++------- .../images/{sonder.png => sonder_footer.png} | Bin public/images/sonder_header.png | Bin 0 -> 2398 bytes 3 files changed, 12 insertions(+), 7 deletions(-) rename public/images/{sonder.png => sonder_footer.png} (100%) create mode 100644 public/images/sonder_header.png diff --git a/database/seeders/TenantSeeder.php b/database/seeders/TenantSeeder.php index 55e4ce6..f31bb21 100644 --- a/database/seeders/TenantSeeder.php +++ b/database/seeders/TenantSeeder.php @@ -45,23 +45,28 @@ class TenantSeeder extends Seeder $existingDomain->delete(); } - $imagePath = public_path('images/sonder.png'); + $headerImagePath = public_path('images/sonder_header.png'); + $footerImagePath = public_path('images/sonder_footer.png'); - if (! file_exists($imagePath)) { - throw new \RuntimeException("Image not found at path: {$imagePath}"); + if (! file_exists($headerImagePath)) { + throw new \RuntimeException("Image not found at path: {$headerImagePath}"); + } + + if (! file_exists($footerImagePath)) { + throw new \RuntimeException("Image not found at path: {$footerImagePath}"); } $headerLogo = new UploadedFile( - $imagePath, - 'sonder.png', + $headerImagePath, + 'sonder_header.png', 'image/png', null, true ); $footerLogo = new UploadedFile( - $imagePath, - 'sonder.png', + $footerImagePath, + 'sonder_footer.png', 'image/png', null, true diff --git a/public/images/sonder.png b/public/images/sonder_footer.png similarity index 100% rename from public/images/sonder.png rename to public/images/sonder_footer.png diff --git a/public/images/sonder_header.png b/public/images/sonder_header.png new file mode 100644 index 0000000000000000000000000000000000000000..630d53add876663ea6f95f8dacf99f4d26a19585 GIT binary patch literal 2398 zcmV-k38D6hP)}4TN{j%vBJ^k|kSA=F9W>K7AT&S=P_d)xB4e*^rLd z1rX&3FZd_IU}Iw=vy#kjZ*NP)4A%$+!VH*8j~;>8kQM+pb3}(A=1q3?8IZ*Q*@&kP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