protected function loadLaravelMigrations($database = []): void
    {
        $options = \is_array($database) ? $database : ['--database' => $database];

        $options['--path'] = 'migrations';

        $migrator = new MigrateProcessor($this, $options);

        $migrator->up();

        $this->app[ConsoleKernel::class]->setArtisan(null);

        $this->beforeApplicationDestroyed(function () use ($migrator) {
            $migrator->rollback();
        });
    }
protected function loadLaravelMigrations($database = []): void
    {
        $options = \is_array($database) ? $database : ['--database' => $database];

        $options['--path'] = 'migrations';

        $migrator = new MigrateProcessor($this, $options);

        $migrator->up();

        $this->app[ConsoleKernel::class]->setArtisan(null);

        $this->beforeApplicationDestroyed(function () use ($migrator) {
            $migrator->rollback();
        });
    }
protected function loadLaravelMigrations ( $ database = [ ] ) : void { $ options = \ is_array ( $ database ) ? $ database : [ '--database' => $ database ] ; $ options [ '--path' ] = 'migrations' ; $ migrator = new MigrateProcessor ( $ this , $ options ) ; $ migrator -> up ( ) ; $ this -> app [ ConsoleKernel :: class ] -> setArtisan ( null ) ; $ this -> beforeApplicationDestroyed ( function ( ) use ( $ migrator ) { $ migrator -> rollback ( ) ; } ) ; }
Migrate Laravel's default migrations.

@param  array|string  $database

@return void
Migrate Laravel s default migrations .