original_string: 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));
          }
      }
code: 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));
          }
      }
code_tokens: 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 ) ) ; } }
docstring: Run migrations for the specified Package.
  
  @param string $slug
  
  @return mixed
docstring_tokens: Run migrations for the specified Package .