src/Extension/ExtensionManager.php
public function migrate(Extension $extension, $direction = 'up')
    {
        $this->app->bind('Illuminate\Database\Schema\Builder', function ($container) {
            return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder();
        });

        $extension->migrate($this->migrator, $direction);
    }
public function migrate(Extension $extension, $direction = 'up')
    {
        $this->app->bind('Illuminate\Database\Schema\Builder', function ($container) {
            return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder();
        });

        $extension->migrate($this->migrator, $direction);
    }
public function migrate ( Extension $ extension , $ direction = 'up' ) { $ this -> app -> bind ( 'Illuminate\Database\Schema\Builder' , function ( $ container ) { return $ container -> make ( 'Illuminate\Database\ConnectionInterface' ) -> getSchemaBuilder ( ) ; } ) ; $ extension -> migrate ( $ this -> migrator , $ direction ) ; }
Runs the database migrations for the extension.

@param Extension $extension
@param string $direction
@return void
Runs the database migrations for the extension .