protected function migrate($slug)
    {
        if (! $this->packages->exists($slug)) {
            return $this->error('Package does not exist.');
        }

        $path = $this->getMigrationPath($slug);

        //
        $pretend = $this->input->getOption('pretend');

        $this->migrator->run($path, $pretend, $slug);

        //
        foreach ($this->migrator->getNotes() as $note) {
            if (! $this->option('quiet')) {
                $this->line($note);
            }
        }

        if ($this->option('seed')) {
            $this->call('package:seed', array('slug' => $slug, '--force' => true));
        }
    }
protected function migrate($slug)
    {
        if (! $this->packages->exists($slug)) {
            return $this->error('Package does not exist.');
        }

        $path = $this->getMigrationPath($slug);

        //
        $pretend = $this->input->getOption('pretend');

        $this->migrator->run($path, $pretend, $slug);

        //
        foreach ($this->migrator->getNotes() as $note) {
            if (! $this->option('quiet')) {
                $this->line($note);
            }
        }

        if ($this->option('seed')) {
            $this->call('package:seed', array('slug' => $slug, '--force' => true));
        }
    }
protected function migrate ( $ slug ) { if ( ! $ this -> packages -> exists ( $ slug ) ) { return $ this -> error ( 'Package does not exist.' ) ; } $ path = $ this -> getMigrationPath ( $ slug ) ; // $ pretend = $ this -> input -> getOption ( 'pretend' ) ; $ this -> migrator -> run ( $ path , $ pretend , $ slug ) ; // foreach ( $ this -> migrator -> getNotes ( ) as $ note ) { if ( ! $ this -> option ( 'quiet' ) ) { $ this -> line ( $ note ) ; } } if ( $ this -> option ( 'seed' ) ) { $ this -> call ( 'package:seed' , array ( 'slug' => $ slug , '--force' => true ) ) ; } }
Run migrations for the specified Package.

@param string $slug

@return mixed
Run migrations for the specified Package .