public function uninstall()
    {
        /*
         * Rollback plugins
         */
        $plugins = $this->pluginManager->getPlugins();
        foreach ($plugins as $name => $plugin) {
            $this->rollbackPlugin($name);
        }

        /*
         * Register module migration files
         */
        $paths = [];
        $modules = Config::get('cms.loadModules', []);

        foreach ($modules as $module) {
            $paths[] = $path = base_path() . '/modules/'.strtolower($module).'/database/migrations';
        }

        /*
         * Rollback modules
         */
        while (true) {
            $rolledBack = $this->migrator->rollback($paths, ['pretend' => false]);

            foreach ($this->migrator->getNotes() as $note) {
                $this->note($note);
            }

            if (count($rolledBack) == 0) {
                break;
            }
        }

        Schema::dropIfExists($this->getMigrationTableName());

        return $this;
    }
public function uninstall()
    {
        /*
         * Rollback plugins
         */
        $plugins = $this->pluginManager->getPlugins();
        foreach ($plugins as $name => $plugin) {
            $this->rollbackPlugin($name);
        }

        /*
         * Register module migration files
         */
        $paths = [];
        $modules = Config::get('cms.loadModules', []);

        foreach ($modules as $module) {
            $paths[] = $path = base_path() . '/modules/'.strtolower($module).'/database/migrations';
        }

        /*
         * Rollback modules
         */
        while (true) {
            $rolledBack = $this->migrator->rollback($paths, ['pretend' => false]);

            foreach ($this->migrator->getNotes() as $note) {
                $this->note($note);
            }

            if (count($rolledBack) == 0) {
                break;
            }
        }

        Schema::dropIfExists($this->getMigrationTableName());

        return $this;
    }
public function uninstall ( ) { /*
         * Rollback plugins
         */ $ plugins = $ this -> pluginManager -> getPlugins ( ) ; foreach ( $ plugins as $ name => $ plugin ) { $ this -> rollbackPlugin ( $ name ) ; } /*
         * Register module migration files
         */ $ paths = [ ] ; $ modules = Config :: get ( 'cms.loadModules' , [ ] ) ; foreach ( $ modules as $ module ) { $ paths [ ] = $ path = base_path ( ) . '/modules/' . strtolower ( $ module ) . '/database/migrations' ; } /*
         * Rollback modules
         */ while ( true ) { $ rolledBack = $ this -> migrator -> rollback ( $ paths , [ 'pretend' => false ] ) ; foreach ( $ this -> migrator -> getNotes ( ) as $ note ) { $ this -> note ( $ note ) ; } if ( count ( $ rolledBack ) == 0 ) { break ; } } Schema :: dropIfExists ( $ this -> getMigrationTableName ( ) ) ; return $ this ; }
Roll back all modules and plugins.
@return self
Roll back all modules and plugins .