<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // Safe in production and against an existing database: defaults use
        // updateOrCreate and do not replace users, balances, leads, or payouts.
        $this->call(SiteSettingsSeeder::class);

        // Demo accounts and sample transactions are strictly opt-in. Never set
        // this flag on a live server.
        if (config('app.seed_demo_data') && app()->environment(['local', 'development'])) {
            $this->call(DemoExperienceSeeder::class);
        }
    }
}
