Run the database seeds.

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

        // Save the permissions
        $group = Sentinel::findRoleBySlug('admin');

        $group->addPermission('product.products.index');
        $group->addPermission('product.products.create');
        $group->addPermission('product.products.edit');
        $group->addPermission('product.products.destroy');

        $group->addPermission('product.categories.index');
        $group->addPermission('product.categories.create');
        $group->addPermission('product.categories.edit');
        $group->addPermission('product.categories.destroy');

        $group->addPermission('product.storages.index');
        $group->addPermission('product.storages.create');
        $group->addPermission('product.storages.edit');
        $group->addPermission('product.storages.destroy');

        $group->save();
    }
192847
public function run()
    {
        $table = $this->table(CMS_TABLE_USERS);
        $table->insert($this->records)->save();
    }
768153
private function runMigration()
    {
        // Confirm connection and migration.
        $connection = $this->confirmConnectionAndMigration();

        // Load the migration class.
        $migration_class = $this->getMigrationClass();

        // Process the migration.
        $this->processMigration($connection, $migration_class);

        // Save this migration to the database/migrations folder.
        $this->createMigrationFile($connection, $migration_class);
    }
1091791
public function run()
    {
        $table = \Input::get('table');
        $field = \Input::get('field');
        $name  = \Input::get('name');
        $rowId = \Input::get('id');

        $dataContainer = $this->initializeDataContainer($table, $field);
        $this->loadRow($table, $rowId, $dataContainer);

        $template = $this->prepareTemplate();

        $template->table = $table;
        $template->field = $field;
        $template->name  = $name;
        $template->icon  = $dataContainer->activeRecord->$field;
        $template->icons = $this->generateIcons($field);

        $template->output();
    }
616704
public function run()
    {
        //
        DB::table('districts')->insert([
            'name' => 'Bawku Municipal',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Bawku West',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Binduri',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Bolgatanga Municipal',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Bongo',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Builsa North',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Builsa South',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Garu-Tempane',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Kassena-Nankana',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Kassena Nankana West',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Nabdam',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Pusiga District',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Talensi',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Bolgatanga East District',
            'region_id' => 8
        ]);
        DB::table('districts')->insert([
            'name' => 'Tempane District',
            'region_id' => 8
        ]);
        
    }
1348880
static public function run()
  {
    foreach (self::$dbs as $db) {
      $db->execute(self::files());
    }

    foreach (self::$writers as $writer) {
      $writer->execute(self::files());
    }
  }
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;');
    }
982609
public function run()
    {
        Model::unguard();

        $this->call('Modules\User\Database\Seeders\PermissionPermissionTableSeeder');
        $this->call('Modules\User\Database\Seeders\RolePermissionTableSeeder');
        $this->call('Modules\User\Database\Seeders\UserPermissionTableSeeder');

        $this->call('Modules\User\Database\Seeders\RoleTableSeeder');
    }
1243947
public function run()
    {
        $vendorDir = dirname(dirname(__FILE__));
        $baseDir = dirname($vendorDir);
        spl_autoload_register(function ($className) use($baseDir) {
            if (file_exists($file = $baseDir . '/database/seeds/' . $className . '.php')) {
                include($file);
                return true;
            }
        });

        $this->call([
            ModulesTableSeeder::class,
            PrivilegesTableSeeder::class,
            SettingsTableSeeder::class,
        ]);
    }
368684
public function run()
    {
        Setting::truncate();

        $settings = $this->settings();
        foreach ($settings as $setting) {
            Setting::create($setting);
        }
    }
1227440
public function run()
    {
        $old = explode(' ', $this->parameters['previous']);
        $new = explode(' ', $this->parameters['current']);
        $out = $this->parameters['output'];
        
        $diff = new taoDevTools_models_RdfDiff();
        foreach ($old as $file) {
            $diff->removeRdf($file);
        }
        foreach ($new as $file) {
            $diff->addRdf($file);
        }
        file_put_contents($out, $diff->exportDiffToSql());
    }
1326565
public function run()
    {
        Model::unguard();

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

        $this->call('Modules\Blog\Database\Seeders\CategoriesTableSeeder');
        $this->call('Modules\Blog\Database\Seeders\PostsTableSeeder');
        $this->call('Modules\Blog\Database\Seeders\CommentsTableSeeder');
        $this->call('Modules\Blog\Database\Seeders\CategoriesContentTableSeeder');
        $this->call('Modules\Blog\Database\Seeders\PostsContentTableSeeder');

        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
605201
public function run()
    {
        try {
            factory(App\User::class)->create([
                    "name" => env('ADMIN_USER', "$USER_NAME$"),
                    "email" => env('ADMIN_EMAIL', "$USER_EMAIL"),
                    "password" => bcrypt(env('ADMIN_PWD', '123456'))]);
        } catch (\Illuminate\Database\QueryException $exception) {
        }
    }
1209889
public function run(): void
    {
        // http://stackoverflow.com/q/1598411
        $list = [
            ['name' => 'Super Admin', 'slug' => HCRoleRepository::ROLE_SA], // Manage everything
            ['name' => 'Project Admin', 'slug' => HCRoleRepository::ROLE_PA], // Manage most aspects of the site
            ['name' => 'User', 'slug' => HCRoleRepository::ROLE_U], // Average Joe
        ];

        foreach ($list as $roleData) {
            $role = $this->repository->findOneBy(['slug' => $roleData['slug']]);

            if (!$role) {
                $this->repository->create($roleData);
            }
        }
    }
1106869
public function run()
    {
        if (!App::environment('testing')) {
            DB::statement('SET FOREIGN_KEY_CHECKS=0');
        }
        DB::table(config('combine-core.tablePrefix', 'combine') . '_addresses')->truncate();
        DB::table(config('combine-core.tablePrefix', 'combine') . '_notes')->truncate();
        DB::table(config('combine-core.tablePrefix', 'combine') . '_phones')->truncate();
        DB::table('users')->truncate();
        if (!App::environment('testing')) {
            DB::statement('SET FOREIGN_KEY_CHECKS=1');
        }
    }
457663
public function run()
    {
        $this->call(SetupSeeder::class);
        $this->call(DefaultRoleSeeder::class);
        $this->call(DefaultSuperAdminUserSeeder::class);
        $this->call(DefaultAdminUserSeeder::class);
    }
1191729
public function run()
    {
        User::whereUsername('admin')->first()->assignRole(Role::whereName('admin')->first());
        User::whereUsername('user')->first()->assignRole(Role::whereName('user')->first());
    }