68 lines
2.5 KiB
PHP
68 lines
2.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\DisplayVideo;
|
|
use App\Models\DisplayFooterContent;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DisplayContentSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Videos aus der bestehenden Konfiguration
|
|
$videos = [
|
|
['filename' => 'herbst_2025.mp4', 'title' => 'Herbst 2025', 'position' => 25, 'sort_order' => 0],
|
|
['filename' => 'fruehjahr_2025.mp4', 'title' => 'Frühjahr 2025', 'position' => 10, 'sort_order' => 1],
|
|
['filename' => 'fruehjahr_2024.mp4', 'title' => 'Frühjahr 2024', 'position' => 25, 'sort_order' => 2],
|
|
['filename' => 'herbst_2024.mp4', 'title' => 'Herbst 2024', 'position' => 25, 'sort_order' => 3],
|
|
];
|
|
|
|
foreach ($videos as $video) {
|
|
DisplayVideo::create($video);
|
|
}
|
|
|
|
// Footer-Inhalte aus der bestehenden Konfiguration
|
|
$footerContents = [
|
|
[
|
|
'headline' => 'Beratung & Termin',
|
|
'subline' => 'Jetzt Termin vereinbaren.',
|
|
'url' => 'https://www.cabinet.de/bielefeld?utm_source=store_display&utm_medium=qr_code&utm_campaign=bielefeld_pos&utm_content=termin_buchung#c39393',
|
|
'sort_order' => 0,
|
|
],
|
|
[
|
|
'headline' => 'Beratung vor Ort',
|
|
'subline' => 'Einfach reinkommen.',
|
|
'url' => 'https://www.cabinet.de/bielefeld?utm_source=store_display&utm_medium=qr_code&utm_campaign=bielefeld_pos&utm_content=termin_buchung#c39393',
|
|
'sort_order' => 1,
|
|
],
|
|
[
|
|
'headline' => 'Pinterest',
|
|
'subline' => 'Inspirationen entdecken.',
|
|
'url' => 'https://de.pinterest.com/cabinet_AG/',
|
|
'sort_order' => 2,
|
|
],
|
|
[
|
|
'headline' => 'Instagram',
|
|
'subline' => 'Tägliche Einblicke & Design.',
|
|
'url' => 'https://www.instagram.com/cabinet_schranksysteme/',
|
|
'sort_order' => 3,
|
|
],
|
|
[
|
|
'headline' => 'Facebook',
|
|
'subline' => 'News, Aktionen & Community.',
|
|
'url' => 'https://de-de.facebook.com/cabinetschranksysteme/',
|
|
'sort_order' => 4,
|
|
],
|
|
];
|
|
|
|
foreach ($footerContents as $content) {
|
|
DisplayFooterContent::create($content);
|
|
}
|
|
|
|
$this->command->info('Display-Inhalte erfolgreich eingefügt!');
|
|
}
|
|
}
|