Your IP : 216.73.216.130


Current Path : /home/forge/stage.sksb.smartcon-survey.com/database/seeders/
Upload File :
Current File : /home/forge/stage.sksb.smartcon-survey.com/database/seeders/DatabaseSeeder.php

<?php

namespace Database\Seeders;

use App\Models\Contact;
use App\Models\Interview;
use App\Models\Invitation;
use App\Models\Topic;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Sequence;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        $this->call([SettingSeeder::class]);
        $this->call([DepartmentSeeder::class]);
        $this->call([LocationSeeder::class]);
        $this->call([RegionSeeder::class]);
        $this->call([CompanySeeder::class]);
        User::create([
            'name' => 'smartcon GmbH',
            'email' => 'info@smartcon.de',
            'email_verified_at' => now()->timestamp,
            'password' => '$2y$10$KlHipVQMYD2.qtqr7tMGl.M1opvwmod1qVFHJeFkW9vZ6SeMv91GK',
            'is_admin' => true,
        ]);
        /*$contacts = Contact::factory()->count(800)->create();
        Topic::factory()
            ->has(
                Interview::factory()
                    ->count(1000)
                    ->state(new Sequence(
                        fn ($sequence) => ['contact_id' => $contacts->random()]
                    ))
            )
            ->has(
                Invitation::factory()
                    ->count(1500)
                    ->state(new Sequence(
                        fn ($sequence) => ['contact_id' => $contacts->random()]
                    ))
            )
            ->create();*/
    }
}