app/Console/Commands/Upgrade.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function fire()
    {
        $this->call('down');
        $this->info("Upgrading core application.");
        $this->call('migrate');
        $modules = new \Ormic\Modules();
        foreach ($modules->getAll() as $name => $path) {
            $this->info("Upgrading $name module.");
            $dbPath = $path . '/database/migrations';
            $this->call('migrate', array('--path' => $dbPath));
        }
        $this->call('up');
    }
public function fire ( ) { $ this -> call ( 'down' ) ; $ this -> info ( " Upgrading core application. " ) ; $ this -> call ( 'migrate' ) ; $ modules = new \ Ormic \ Modules ( ) ; foreach ( $ modules -> getAll ( ) as $ name => $ path ) { $ this -> info ( " Upgrading  $ name  module. " ) ; $ dbPath = $ path . '/database/migrations' ; $ this -> call ( 'migrate' , array ( '--path' => $ dbPath ) ) ; } $ this -> call ( 'up' ) ; }
Execute the console command.
Execute the console command .