<?php

namespace Database\Seeders;

use App\Settings\GeneralSettings;
use Illuminate\Database\Seeder;

class SettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        /** @var \App\Settings\GeneralSettings $settings */
        $settings = app(GeneralSettings::class);

        $settings->fill([
            'gallery_heading' => 'Eure Bilder aus der Fotoboxx',
            'new_image_timespan_minutes' => 10_000,
            'image_refresh_interval' => 30_000,
            'max_number_of_copies' => 3,
            'show_print_button' => true,
            'require_gallery_password' => false,
            'gallery_password_hash' => null,
            'gallery_expires_at' => null,
            'gallery_access_duration_minutes' => null,
            'selected_printer' => null,
            'custom_printer_address' => null,
            'default_style_id' => null,
        ])->save();
    }
}
