Run the database seeds.

@return void
490995
public function run()
    {
        Model::unguard();

        if(!OrderStatus::find(OrderStatus::PENDING_PAYMENT))
            OrderStatus::create([
                'id' => OrderStatus::PENDING_PAYMENT,
                'code' => 'pending_payment',
                'name' => 'Pending Payment',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PENDING_PAYMENT_APPROVAL))
            OrderStatus::create([
                'id' => OrderStatus::PENDING_PAYMENT_APPROVAL,
                'code' => 'pending_approval',
                'name' => 'Pending Payment Approval',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PENDING))
            OrderStatus::create([
                'id' => OrderStatus::PENDING,
                'code' => 'pending',
                'name' => 'Pending',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PROCESSING))
            OrderStatus::create([
                'id' => OrderStatus::PROCESSING,
                'code' => 'processing',
                'name' => 'Processing',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::SHIPPING))
            OrderStatus::create([
                'id' => OrderStatus::SHIPPING,
                'code' => 'shipping',
                'name' => 'Shipping',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::SHIPPED))
            OrderStatus::create([
                'id' => OrderStatus::SHIPPED,
                'code' => 'shipped',
                'name' => 'Shipped',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::COMPLETED))
            OrderStatus::create([
                'id' => OrderStatus::COMPLETED,
                'code' => 'completed',
                'name' => 'Completed',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::CANCELED))
            OrderStatus::create([
                'id' => OrderStatus::CANCELED,
                'code' => 'canceled',
                'name' => 'Canceled',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PARTIALLY_CANCELED))
            OrderStatus::create([
                'id' => OrderStatus::PARTIALLY_CANCELED,
                'code' => 'partially_canceled',
                'name' => 'Partially Canceled',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::REFUNDED))
            OrderStatus::create([
                'id' => OrderStatus::REFUNDED,
                'code' => 'refunded',
                'name' => 'Refunded',
                'is_system' => true,
            ]);
        if(!OrderStatus::find(OrderStatus::PARTIALLY_REFUNDED))
            OrderStatus::create([
                'id' => OrderStatus::PARTIALLY_REFUNDED,
                'code' => 'partially_refunded',
                'name' => 'Partially Refunded',
                'is_system' => true,
            ]);

        $this->call(SentinelGroupSeedTableSeeder::class);
    }
557148
public function run()
    {
        $this->languages = ['ru', 'en'];

        foreach ($this->languages as $language) {
            Language::create(
                $this->languages()[$language]
            );
        }
    }
696670
public function run()
    {
        $this->seed('DataTypesTableSeeder');
        $this->seed('DataRowsTableSeeder');
        $this->seed('MenusTableSeeder');
        $this->seed('MenuItemsTableSeeder');
        $this->seed('RolesTableSeeder');
        $this->seed('PermissionsTableSeeder');
        $this->seed('PermissionRoleTableSeeder');
        //测试数据
        $this->seed('CategoriesTableSeeder');
        $this->seed('UsersTableSeeder');
        $this->seed('PostsTableSeeder');
        $this->seed('PagesTableSeeder');
        $this->seed('SettingsTableSeeder');
        $this->seed('TranslationsTableSeeder');
    }
768166
public function run()
    {
        $this->seed([
            [
                'group'       => [
                    'name'        => 'Blog',
                    'slug'        => 'blog',
                    'description' => 'Blog permissions group',
                ],
                'permissions' => array_merge(
                    $this->getDashboardPermissions(),
                    $this->getPostsPermissions(),
                    $this->getCategoriesPermissions(),
                    $this->getTagsPermissions()
                ),
            ],
        ]);
    }
1200575
public function run()
	{
		$this->permissionsUserSeeder();
        $this->permissionsRoleSeeder();
        $this->permissionsSeeder();
        $this->permissionsAllSeeder();
        $this->rolesSeeder();
        $this->addPermissionRoleSeeder();
		$this->usersSeeder();
		$this->roleUserSeeder();
	}
132528
public function run()
    {
        $users = users('member');
        if (empty($users)) {
            return;
        }
        $this->down();
        $insert = [];
        foreach ($users as $user) {
            for ($i = 0; $i < 2; $i++) {
                array_push($insert, $this->createInsert($user->id));
            }
        }
        for ($i = 0; $i < 10; $i++) {
            $user = $users->random();
            array_push($insert, $this->createInsert($user->id));
        }
        DB::table('tbl_custom_module')->insert($insert);
        $widgetParamsSchemaPath = __DIR__ . '/schemas/widget_params.sql';
        if (file_exists($widgetParamsSchemaPath)) {
            DB::unprepared(file_get_contents($widgetParamsSchemaPath));
        }
    }
1369974
public function run() {
        \DB::table('languages')->delete();

        $languages = config('laravel-locale.locales');

        array_walk($languages, function($options, $slug) {
            Language::create([
                'title'  => $options['title'],
                'slug'   => $slug,
                'active' => true,
                'rank'   => 1
            ]);
        });
    }
1334707
public function run()
    {
        session_start();
        self::$_app = $this;
        if (empty($this->_runtimePath)) {
            $this->_runtimePath = $this->_basePath . '/runtime';
        }
        $application = $this->getComponent('application');
        $application->runController();
    }
349788
public function run()
	{
		$this->echoLoadingTags();

		$assets = CoreAsset::register($this->view);

		if ($this->theme === true) { // Register the theme
			ThemeAsset::register($this->view);
		}

		if (isset($this->options['language'])) {
			$assets->language = $this->options['language'];
		}

		$assets->googleCalendar = $this->googleCalendar;
		$this->clientOptions['header'] = $this->header;

		$this->view->registerJs(implode("\n", [
			"jQuery('#{$this->options['id']}').fullCalendar({$this->getClientOptions()});",
		]), \yii\web\View::POS_READY);
	}
1060381
public function run()
    {
        if (DB::table('users')->where('username', 'admin')->first()) {
            return;
        }
        
        DB::table('users')->insert($user = [
                'username' => 'admin',
                'email' => 'admin@livecms.dev',
                'password' => bcrypt('admin'),
                'name' => 'LiveCMS Administrator',
                'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
            ]);

        $user_id = DB::table('users')->where($user)->first()->id;

        $role_id = DB::table('roles')->where('role', 'admin')->first()->id;

        DB::table('role_users')->insert(compact('role_id', 'user_id'));
    }
84756
public function run()
    {
        if (!App::environment('testing')) {
            DB::statement('SET FOREIGN_KEY_CHECKS=0');
        }
        DB::table(config('combine-core.tablePrefix', 'combine') . '_abilities')->truncate();
        DB::table(config('combine-core.tablePrefix', 'combine') . '_roles')->truncate();
        DB::table(config('combine-core.tablePrefix', 'combine') . '_teams')->truncate();
        DB::table('users')->truncate();
        if (!App::environment('testing')) {
            DB::statement('SET FOREIGN_KEY_CHECKS=1');
        }

        echo "Populating Roles ...\n";
        $this->roleModels = $this->populateRoles($this->roles);
        echo "Populating Abiltiies ...\n";
        $this->populateAbilities($this->abilities, $this->roleModels);
    }
391885
public function run()
    {
        $this->seed([
            [
                'group'       => [
                    'name'        => 'SEO',
                    'slug'        => 'seo',
                    'description' => 'SEO permissions group',
                ],
                'permissions' => array_merge(
                    $this->getDashboardSeeds(),
                    $this->getPagesSeeds(),
                    $this->getFootersSeeds(),
                    $this->getMetasSeeds(),
                    $this->getRedirectsSeeds()
                ),
            ],
        ]);
    }
730735
public function run(): void
    {
        foreach (self::SETTINGS as $setting_name => $setting_value) {
            DB::table('site_setting')->updateOrInsert([
                'setting_name'  => $setting_name,
            ], [
                'setting_value' => $setting_value,
            ]);
        }
    }
809070
public function run()
    {
        DB::table('roles')->truncate();

        $locale = env('REACTOR_LOCALE', 'en');

        $roles = $this->roles[$locale];

        foreach($roles as $role)
        {
            Role::create($role);
        }
    }
1243290
public function run()
	{
		Eloquent::unguard();

		$this->call('DomAndTom\LaravelSwagger\CategoryTableSeeder');
		$this->command->info('Laravel Swagger Demo Categories seeded!');

		$this->call('DomAndTom\LaravelSwagger\TagTableSeeder');
		$this->command->info('Laravel Swagger Demo Tags seeded!');

		$this->call('DomAndTom\LaravelSwagger\PetTableSeeder');
		$this->command->info('Laravel Swagger Demo Pets seeded!');
	}
529837
public function run()
    {
        Model::unguard();

        DB::statement('SET FOREIGN_KEY_CHECKS=0;');

        $this->call('Modules\Site\Database\Seeders\PagesTableSeeder');
        $this->call('Modules\Site\Database\Seeders\ContentsTableSeeder');

        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
514180
public function run()
	{
		\Aimeos\MAdmin\Cache\Manager\Factory::create( $this->getContext() )->getCache()->cleanup();
	}