<?php

namespace Database\Seeders;

use App\Models\System\Roles\Permission;
use Illuminate\Database\Seeder;

class PermissionTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        collect([
            'ViewCardOrders',
            'ViewLoanOrders',
        ])->each(fn ($name) => Permission::create([
            'name' => $name,
            'guard_name' => 'web',
        ]));
    }
}
