feat(seeder): add SocialMediaSeeder and integrate social media data into TenantSeeder
This commit is contained in:
@@ -19,6 +19,29 @@ class TenantSeeder extends Seeder
|
||||
'06-city-runners.png',
|
||||
];
|
||||
|
||||
private const SOCIAL_MEDIA = [
|
||||
[
|
||||
'code' => 'instagram',
|
||||
'url' => 'https://www.instagram.com/sonderargentina/',
|
||||
'orden' => 0,
|
||||
],
|
||||
[
|
||||
'code' => 'facebook',
|
||||
'url' => 'https://www.facebook.com/SonderArgentina/',
|
||||
'orden' => 1,
|
||||
],
|
||||
[
|
||||
'code' => 'linkedin',
|
||||
'url' => 'https://www.linkedin.com/company/35664983/',
|
||||
'orden' => 2,
|
||||
],
|
||||
[
|
||||
'code' => 'whatsapp',
|
||||
'url' => 'https://wa.me/5493412602222',
|
||||
'orden' => 3,
|
||||
],
|
||||
];
|
||||
|
||||
public function __construct(protected TenantService $tenantService) {}
|
||||
|
||||
/**
|
||||
@@ -117,6 +140,7 @@ class TenantSeeder extends Seeder
|
||||
'header_logo' => $headerLogo,
|
||||
'footer_logo' => $footerLogo,
|
||||
'main_carousel_images' => $mainCarouselImages,
|
||||
'social_media' => self::SOCIAL_MEDIA,
|
||||
]);
|
||||
|
||||
// Check if tenant 'fiesta_futbol_infantil' already exists
|
||||
@@ -214,6 +238,7 @@ class TenantSeeder extends Seeder
|
||||
'location' => 'Sunchales, Santa Fe',
|
||||
'dates' => ['2026-10-09', '2026-10-10', '2026-10-11', '2026-10-12'],
|
||||
],
|
||||
'social_media' => self::SOCIAL_MEDIA,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user