<?php

use App\Models\Setting;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Setting::firstOrCreate(
            ['key' => 'show_auth_links'],
            [
                'value' => '1',
                'type' => 'boolean',
                'group' => 'frontend',
                'description' => 'Show Sign In / Sign Up buttons in the public navigation header',
            ]
        );
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Setting::where('key', 'show_auth_links')->delete();
    }
};
