<?php namespace Orchestra\Database;

use Orchestra\Database\Console\Migrations\MigrateCommand;
use Illuminate\Database\MigrationServiceProvider as ServiceProvider;

class MigrationServiceProvider extends ServiceProvider
{
    /**
     * Register the "migrate" migration command.
     *
     * @return void
     */
    protected function registerMigrateCommand()
    {
        $this->app->singleton('command.migrate', function ($app) {
            $packagePath = $app['path.base'].'/vendor';

            return new MigrateCommand($app['migrator'], $packagePath);
        });
    }
}

<?php namespace Orchestra\Database;

use Orchestra\Database\Console\Migrations\MigrateCommand;
use Illuminate\Database\MigrationServiceProvider as ServiceProvider;

class MigrationServiceProvider extends ServiceProvider
{
    /**
     * Register the "migrate" migration command.
     *
     * @return void
     */
    protected function registerMigrateCommand()
    {
        $this->app->singleton('command.migrate', function ($app) {
            $packagePath = $app['path.base'].'/vendor';

            $command = new MigrateCommand($app['migrator']);

            return $command->setPackagePath($packagePath);
        });
    }
}

Handle setting up package path.
Handle setting up package path.

Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
