private function createDummyContent()
    {
        $this->info("Creating default roles...");
        UserGroup::createDefaultRoles();
        $this->advanceBar();

        $this->info("Creating admin user...");
        $this->createAdminUser();
        $this->advanceBar();

        // Create Default Language
        $this->info("Creating default language...");
        factory(\App\Models\Language::class)->create(
            [
            'name' => $this->PRIMARY_LANGUAGE->name,
            'nativeName' => $this->PRIMARY_LANGUAGE->nativeName,
            'slug' => $this->PRIMARY_LANGUAGE->slug,
            'isDefault' => true
            ]
        );
        $this->advanceBar();

        $this->info("Creating default post types...");
        (new \PostTypeSeeder())->createDefaultPostTypes();
        $this->advanceBar();

        // Create tags example
        $this->info("Creating example tags...");
        (new \TagSeeder())->run(20, null, true);
        $this->advanceBar();

        // Create a category
        $this->info("Creating an example category...");
        $categoryObj = new \CategorySeeder();
        $categoryObj->exampleTitles = true;
        $categoryObj->run(3, null);
        $this->advanceBar();

        $this->info("Creating example posts...");
        (new \PostSeeder())->run(0, 5, '', 0, 0, 0, false);
        $this->advanceBar();

        // Create default permalinks
        $this->info("Creating default permalinks...");
        (new \PermalinksTableSeeder())->run();
        $this->advanceBar();

        // Creating settings
        $this->info("Saving settings...");
        $this->setSettings();
        $this->advanceBar();

        // Create Primary Menu
        $this->info("Creating primary Menu...");
        $menuSeeder = new \MenuSeeder();
        $menu = $menuSeeder->createPrimaryMenu();
        $menuSeeder->addHomepageToPrimaryMenu($menu);
        $menuSeeder->addAboutToPrimaryMenu($menu);
        $menuSeeder->addCategoryToMenu($menu);
        $this->advanceBar();

        return $this;
    }
private function createDummyContent()
    {
        $this->info("Creating default roles...");
        UserGroup::createDefaultRoles();
        $this->advanceBar();

        $this->info("Creating admin user...");
        $this->createAdminUser();
        $this->advanceBar();

        // Create Default Language
        $this->info("Creating default language...");
        factory(\App\Models\Language::class)->create(
            [
            'name' => $this->PRIMARY_LANGUAGE->name,
            'nativeName' => $this->PRIMARY_LANGUAGE->nativeName,
            'slug' => $this->PRIMARY_LANGUAGE->slug,
            'isDefault' => true
            ]
        );
        $this->advanceBar();

        $this->info("Creating default post types...");
        (new \PostTypeSeeder())->createDefaultPostTypes();
        $this->advanceBar();

        // Create tags example
        $this->info("Creating example tags...");
        (new \TagSeeder())->run(20, null, true);
        $this->advanceBar();

        // Create a category
        $this->info("Creating an example category...");
        $categoryObj = new \CategorySeeder();
        $categoryObj->exampleTitles = true;
        $categoryObj->run(3, null);
        $this->advanceBar();

        $this->info("Creating example posts...");
        (new \PostSeeder())->run(0, 5, '', 0, 0, 0, false);
        $this->advanceBar();

        // Create default permalinks
        $this->info("Creating default permalinks...");
        (new \PermalinksTableSeeder())->run();
        $this->advanceBar();

        // Creating settings
        $this->info("Saving settings...");
        $this->setSettings();
        $this->advanceBar();

        // Create Primary Menu
        $this->info("Creating primary Menu...");
        $menuSeeder = new \MenuSeeder();
        $menu = $menuSeeder->createPrimaryMenu();
        $menuSeeder->addHomepageToPrimaryMenu($menu);
        $menuSeeder->addAboutToPrimaryMenu($menu);
        $menuSeeder->addCategoryToMenu($menu);
        $this->advanceBar();

        return $this;
    }
private function createDummyContent ( ) { $ this -> info ( "Creating default roles..." ) ; UserGroup :: createDefaultRoles ( ) ; $ this -> advanceBar ( ) ; $ this -> info ( "Creating admin user..." ) ; $ this -> createAdminUser ( ) ; $ this -> advanceBar ( ) ; // Create Default Language $ this -> info ( "Creating default language..." ) ; factory ( \ App \ Models \ Language :: class ) -> create ( [ 'name' => $ this -> PRIMARY_LANGUAGE -> name , 'nativeName' => $ this -> PRIMARY_LANGUAGE -> nativeName , 'slug' => $ this -> PRIMARY_LANGUAGE -> slug , 'isDefault' => true ] ) ; $ this -> advanceBar ( ) ; $ this -> info ( "Creating default post types..." ) ; ( new \ PostTypeSeeder ( ) ) -> createDefaultPostTypes ( ) ; $ this -> advanceBar ( ) ; // Create tags example $ this -> info ( "Creating example tags..." ) ; ( new \ TagSeeder ( ) ) -> run ( 20 , null , true ) ; $ this -> advanceBar ( ) ; // Create a category $ this -> info ( "Creating an example category..." ) ; $ categoryObj = new \ CategorySeeder ( ) ; $ categoryObj -> exampleTitles = true ; $ categoryObj -> run ( 3 , null ) ; $ this -> advanceBar ( ) ; $ this -> info ( "Creating example posts..." ) ; ( new \ PostSeeder ( ) ) -> run ( 0 , 5 , '' , 0 , 0 , 0 , false ) ; $ this -> advanceBar ( ) ; // Create default permalinks $ this -> info ( "Creating default permalinks..." ) ; ( new \ PermalinksTableSeeder ( ) ) -> run ( ) ; $ this -> advanceBar ( ) ; // Creating settings $ this -> info ( "Saving settings..." ) ; $ this -> setSettings ( ) ; $ this -> advanceBar ( ) ; // Create Primary Menu $ this -> info ( "Creating primary Menu..." ) ; $ menuSeeder = new \ MenuSeeder ( ) ; $ menu = $ menuSeeder -> createPrimaryMenu ( ) ; $ menuSeeder -> addHomepageToPrimaryMenu ( $ menu ) ; $ menuSeeder -> addAboutToPrimaryMenu ( $ menu ) ; $ menuSeeder -> addCategoryToMenu ( $ menu ) ; $ this -> advanceBar ( ) ; return $ this ; }
Create dummy content

@return $this
@throws \Exception
Create dummy content