feat: add TenantSeeder to initialize sonder tenant with header logo asset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user