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();
}
$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

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