Run the database seeds.

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

        DB::table('user__users')->delete();
        DB::table('user__roles')->delete();
        DB::table('user__password_resets')->delete();
        DB::table('user__role_user')->delete();
        DB::table('user__permissions')->delete();
        DB::table('user__permission_role')->delete();

        $this->createAdmin();
        $this->createDemo();

        $this->createUsers();
    }
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
            ]);
        });
    }
1183174
public function run()
    {
        // pages, news, blog, albums
        //\App\Models\Photo::truncate();

        $this->call(RoleTableSeeder::class);
        //$this->call(UserTableSeeder::class);

        $this->call(BannerTableSeeder::class);

        $this->call(PageTableSeeder::class);
        $this->call(NavigationAdminTableSeeder::class);

        //$this->call(SubscriptionPlanFeaturesSeeder::class);
        //$this->call(SubscriptionPlanTableSeeder::class);

        //$this->call(FAQTableSeeder::class);
        //$this->call(TestimonialTableSeeder::class);

        //$this->call(NewsTableSeeder::class);
        //$this->call(ArticleTableSeeder::class);
        //$this->call(PhotoAlbumTableSeeder::class);

        //$this->call(TenderTableSeeder::class);
        //$this->call(VacancyTableSeeder::class);
        //$this->call(AnnualReportTableSeeder::class);

        //$this->call(LocationTableSeeder::class);
    }
191210
public function run()
    {
        $MenuTypes = ['header', 'sidebar', 'footer'];

        foreach ($MenuTypes as $MenuType) {
            $Type = ['type' => $MenuType];

            factory(Menu::class, 5)->create($Type)->each(function ($u) use ($Type) {
                $u->children()->saveMany(factory(Menu::class, 2)->create($Type)
                    ->each(function ($p) use ($Type) {
                        $p->children()->saveMany(factory(Menu::class, 2)->make($Type));
                    }));
            });
        }
    }
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()
                ),
            ],
        ]);
    }
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;');
    }
200356
protected function runSeeds()
	{
		foreach($this->getSeeders() as $file) {
			require_once $file;
			$className = basename($file, '.php');
			$this->runSeed($className);
		}
	}
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;');
    }
789296
public function run()
    {
        DB::table('users_groups')->delete();

        $this->matchUser('admin@dsmg.co.uk', 'Admins');
        $this->matchUser('semiadmin@dsmg.co.uk', 'Moderators');
        $this->matchUser('semiadmin@dsmg.co.uk', 'Bloggers');
        $this->matchUser('semiadmin@dsmg.co.uk', 'Editors');
        $this->matchUser('moderator@dsmg.co.uk', 'Moderators');
        $this->matchUser('blogger@dsmg.co.uk', 'Bloggers');
        $this->matchUser('editor@dsmg.co.uk', 'Editors');
        $this->matchUser('user@dsmg.co.uk', 'Users');
    }
764850
public function run()
    {
        foreach($this->dumpFiles() as $dumpPart) {

            $query = "LOAD DATA LOCAL INFILE '"
                    . str_replace('\\', '/', $dumpPart) . "'
                    INTO TABLE `" . Config::citiesTableName() . "` 
                        FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'
                        LINES TERMINATED BY '\n' IGNORE 1 LINES
                        (country,
                        city_ascii,
                        city,
                        region,
                        population,
                        latitude,
                        longitude
                    )";

            DB::connection()->getpdo()->exec($query);

        }
    }
809070
public function run()
    {
        DB::table('roles')->truncate();

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

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

        foreach($roles as $role)
        {
            Role::create($role);
        }
    }
908387
public function run()
    {
        /**
         * Get Available Permissions.
         */
        $permissions = config('roles.models.permission')::all();

        /**
         * Attach Permissions to Roles.
         */
        $roleAdmin = config('roles.models.role')::where('name', '=', 'Admin')->first();
        foreach ($permissions as $permission) {
            $roleAdmin->attachPermission($permission);
        }
    }
310125
public function run()
    {
        \DB::table('lfm_categories')->delete();
        \DB::table('lfm_categories')->insert(
            array (
                'id' => '0',
                'user_id' => 0,
                'title' => 'Root folder',
                'title_disc' => 'root_folder',
                'description' => 'root',
                'parent_category_id' => '#',
                'created_by' => 0,
                'created_at' => NULL,
                'updated_at' => NULL,
                'deleted_at' => NULL,
            )
        );
        \DB::unprepared("UPDATE lfm_categories SET id=0");
        \DB::table('lfm_categories')->insert(array (
            0 =>
                array (
                    'id' => -5,
                    'user_id' => 0,
                    'title' => 'Direct upload',
                    'title_disc' => 'direct_folder',
                    'description' => 'direct upload folder',
                    'parent_category_id' => '#',
                    'created_by' => 0,
                    'created_at' => NULL,
                    'updated_at' => NULL,
                    'deleted_at' => NULL,
                ),
            1 =>
                array (
                    'id' => -2,
                    'user_id' => 0,
                    'title' => 'Share folder',
                    'title_disc' => 'share_folder',
                    'description' => 'share',
                    'parent_category_id' => '#',
                    'created_by' => 0,
                    'created_at' => NULL,
                    'updated_at' => NULL,
                    'deleted_at' => NULL,
                ),
            2 =>
                array (
                    'id' => -1,
                    'user_id' => 0,
                    'title' => 'public folder',
                    'title_disc' => 'public_folder',
                    'description' => 'public',
                    'parent_category_id' => '#',
                    'created_by' => 0,
                    'created_at' => NULL,
                    'updated_at' => NULL,
                    'deleted_at' => NULL,
                ),
        ));

    }
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);
    }
1107434
public function run()
    {
        Eloquent::unguard();

        $this->call('GrahamCampbell\CMSCore\Seeds\GroupsTableSeeder');
        $this->call('GrahamCampbell\CMSCore\Seeds\UsersTableSeeder');
        $this->call('GrahamCampbell\CMSCore\Seeds\UsersGroupsTableSeeder');

        $this->call('GrahamCampbell\CMSCore\Seeds\PagesTableSeeder');
        $this->call('GrahamCampbell\CMSCore\Seeds\PostsTableSeeder');
        $this->call('GrahamCampbell\CMSCore\Seeds\CommentsTableSeeder');
        $this->call('GrahamCampbell\CMSCore\Seeds\EventsTableSeeder');
    }
1334707
public function run()
    {
        session_start();
        self::$_app = $this;
        if (empty($this->_runtimePath)) {
            $this->_runtimePath = $this->_basePath . '/runtime';
        }
        $application = $this->getComponent('application');
        $application->runController();
    }
968279
public function run()
    {
        factory(\App\Entities\Admin\Categoria::class, 6)->create();

        factory(\App\Entities\Admin\Tag::class, 10)->create();

        factory(\App\Entities\Admin\Noticia::class, 20)->create()->each(function ($n){{
            $tags = \App\Entities\Admin\Tag::all()->random()->id;
            $n->tags()->sync($tags);
        }});
    }