<?php

namespace Database\Seeders;

use App\Models\PlatformNotification;
use Illuminate\Database\Seeder;

class NotificationSeeder extends Seeder
{
    public function run(): void
    {
        $count = max(0, (int) config('database.seeders.notification_count', 0));

        if ($count > 0 && PlatformNotification::query()->doesntExist()) {
            PlatformNotification::factory()->count($count)->create();
        }
    }
}
