protected function runUp(array $file, int $batch): void
    {
        $this->notify->note("<comment>Migrating:</comment> {$file['basename']}");

        $this->runMigration($file);

        // Once we have run a migrations class, we will log that it was run in this
        // repository so that we don't try to run it next time we do a migration
        // in the application. A migration repository keeps the migrate order.
        $this->repository->log($this->getMigrationName($file), $batch);

        $this->notify->note("<info>Migrated:</info>  {$file['basename']}");
    }
protected function runUp(array $file, int $batch): void
    {
        $this->notify->note("<comment>Migrating:</comment> {$file['basename']}");

        $this->runMigration($file);

        // Once we have run a migrations class, we will log that it was run in this
        // repository so that we don't try to run it next time we do a migration
        // in the application. A migration repository keeps the migrate order.
        $this->repository->log($this->getMigrationName($file), $batch);

        $this->notify->note("<info>Migrated:</info>  {$file['basename']}");
    }
protected function runUp ( array $ file , int $ batch ) : void { $ this -> notify -> note ( "<comment>Migrating:</comment> {$file['basename']}" ) ; $ this -> runMigration ( $ file ) ; // Once we have run a migrations class, we will log that it was run in this // repository so that we don't try to run it next time we do a migration // in the application. A migration repository keeps the migrate order. $ this -> repository -> log ( $ this -> getMigrationName ( $ file ) , $ batch ) ; $ this -> notify -> note ( "<info>Migrated:</info>  {$file['basename']}" ) ; }
Run "up" a migration instance.

@param array  $file
@param int   $batch

@return void
Run up a migration instance .