Loheide-eu-mitarbeiterplatt.../database/seeders/DatabaseSeeder.php
Friederich Loheide a36752e09a
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m8s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m12s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m5s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m6s
CI / Build-Artefakte aktuell (pull_request) Failing after 43s
Neuigkeiten und Termine (vorgezogen)
- Neuigkeiten mit Kategorien, Titelbild (WebP-Varianten), Lesezeit, geplanter
  Veröffentlichung und Hervorhebung; Text wird beim Speichern bereinigt
- Termine mit Ort, Online-Link, ganztägigen Terminen und .ics-Export
- Startseite nach Intranet-Vorbild: Slider, Neuigkeiten, Termine, Aktuelles
  aus den Bereichen; mobil in sinnvoller Reihenfolge
- Admin: Beiträge, Kategorien und Termine
- Bildverarbeitung für Shared Hosting: nur eine Vollbild-Kopie im Speicher,
  Speicherlimit bei Bedarf auf 256 MB angehoben (wie WordPress)
- Demo-Inhalte für die Entwicklung

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 05:16:27 +00:00

43 lines
2.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use App\Models\User;
use App\Support\Settings;
use Illuminate\Database\Seeder;
/**
* Nur für Entwicklung und Demo – Produktivinstallationen legen den ersten
* Administrator über den Web-Installer an (Phase 1).
*/
class DatabaseSeeder extends Seeder
{
public function run(): void
{
User::factory()->admin()->create([
'first_name' => 'Ada',
'last_name' => 'Admin',
'email' => 'admin@example.com',
'job_title' => 'Administration',
]);
User::factory(25)->create();
app(Settings::class)->set('portal.quick_links', [
['label' => 'Zeiterfassung', 'url' => 'https://example.com/zeit', 'icon' => 'clock', 'new_tab' => true],
['label' => 'Urlaubsantrag', 'url' => 'https://example.com/urlaub', 'icon' => 'plane', 'new_tab' => true],
['label' => 'Dienstplan', 'url' => 'https://example.com/dienstplan', 'icon' => 'calendar-days', 'new_tab' => true],
['label' => 'Fortbildungen', 'url' => 'https://example.com/fortbildung', 'icon' => 'graduation-cap', 'new_tab' => true],
['label' => 'IT-Support', 'url' => 'https://example.com/support', 'icon' => 'headset', 'new_tab' => true],
['label' => 'Speiseplan', 'url' => 'https://example.com/speiseplan', 'icon' => 'utensils', 'new_tab' => true],
['label' => 'Formulare', 'url' => 'https://example.com/formulare', 'icon' => 'file-text', 'new_tab' => true],
['label' => 'Reisekosten', 'url' => 'https://example.com/reisekosten', 'icon' => 'receipt', 'new_tab' => true],
['label' => 'Fahrdienst', 'url' => 'https://example.com/fahrdienst', 'icon' => 'car', 'new_tab' => true],
['label' => 'Richtlinien', 'url' => 'https://example.com/richtlinien', 'icon' => 'book-open', 'new_tab' => true],
['label' => 'Ideenbox', 'url' => 'https://example.com/ideen', 'icon' => 'lightbulb', 'new_tab' => true],
['label' => 'Personen', 'url' => '/personen', 'icon' => 'users', 'new_tab' => false],
]);
$this->call(DemoContentSeeder::class);
}
}