<?php

namespace Database\Seeders;

use App\Services\SettingsRepository;
use Illuminate\Database\Seeder;

/**
 * Writes the defaults into the database so they are visible and editable on
 * the Settings screen, rather than invisible until somebody saves the form.
 */
class CentralSettingSeeder extends Seeder
{
    public function run(): void
    {
        $settings = app(SettingsRepository::class);

        $settings->setMany(SettingsRepository::defaults());

        $this->command->info('Seeded panel settings.');
    }
}
