protected function migrateHook(Hook $hook)
    {
        $migrations = (array) $hook->getComposerHookKey('migrations', []);

        foreach ($migrations as $path) {
            if ($this->filesystem->isDirectory($hook->getPath().'/'.$path)) {
                $this->migrator->run($this->realPath([$path], $hook->getPath().'/')->all());
            } else {
                $this->migrator->runFiles($this->realPath([$path], $hook->getPath().'/')->all());
            }
        }
    }
protected function migrateHook(Hook $hook)
    {
        $migrations = (array) $hook->getComposerHookKey('migrations', []);

        foreach ($migrations as $path) {
            if ($this->filesystem->isDirectory($hook->getPath().'/'.$path)) {
                $this->migrator->run($this->realPath([$path], $hook->getPath().'/')->all());
            } else {
                $this->migrator->runFiles($this->realPath([$path], $hook->getPath().'/')->all());
            }
        }
    }
protected function migrateHook ( Hook $ hook ) { $ migrations = ( array ) $ hook -> getComposerHookKey ( 'migrations' , [ ] ) ; foreach ( $ migrations as $ path ) { if ( $ this -> filesystem -> isDirectory ( $ hook -> getPath ( ) . '/' . $ path ) ) { $ this -> migrator -> run ( $ this -> realPath ( [ $ path ] , $ hook -> getPath ( ) . '/' ) -> all ( ) ) ; } else { $ this -> migrator -> runFiles ( $ this -> realPath ( [ $ path ] , $ hook -> getPath ( ) . '/' ) -> all ( ) ) ; } } }
Run migrations found for a specific hook.

@param \Larapack\Hooks\Hook $hook
Run migrations found for a specific hook .