feat: add TenantSeeder to initialize sonder tenant with header logo asset
This commit is contained in:
parent
4943e68606
commit
230ea57ce0
|
|
@ -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
|
||||
|
|
|
|||
|
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 |
Loading…
Reference in New Issue