<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        $this->call([
            UserTypeSeeder::class,
            PermissionSeeder::class,
            RoleSeeder::class,
            PlanAndFeatureSeeder::class,
        ]);

        // Demo users and predictable local credentials must never be created
        // by a production database seed.
        if (! app()->environment('production')) {
            $this->call(SampleTenantSeeder::class);
        }
    }
}
