feat: add TenantSeeder to initialize sonder tenant with header logo asset

This commit is contained in:
ncoronel 2026-07-01 16:05:55 -03:00
parent 4943e68606
commit 230ea57ce0
3 changed files with 12 additions and 7 deletions

View File

@ -45,23 +45,28 @@ class TenantSeeder extends Seeder
$existingDomain->delete(); $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)) { if (! file_exists($headerImagePath)) {
throw new \RuntimeException("Image not found at path: {$imagePath}"); 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( $headerLogo = new UploadedFile(
$imagePath, $headerImagePath,
'sonder.png', 'sonder_header.png',
'image/png', 'image/png',
null, null,
true true
); );
$footerLogo = new UploadedFile( $footerLogo = new UploadedFile(
$imagePath, $footerImagePath,
'sonder.png', 'sonder_footer.png',
'image/png', 'image/png',
null, null,
true true

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB