public function runMappingList(array $mappings, array $options = [])
    {
        // First we will just make sure that there are any migrations to run. If there
        // aren't, we will just make a note of it to the developer.
        if (count($mappings) == 0) {
            $this->note('<info>Nothing to map</info>');

            return;
        }

        $batch = $this->repository->getNextBatchNumber();

        $step = Arr::get($options, 'step', false);
        $index = Arr::get($options, 'index');

        foreach ($mappings as $file) {
            $this->runMap($file, $batch, $index);

            if ($step) {
                $batch++;
            }
        }
    }
public function runMappingList(array $mappings, array $options = [])
    {
        // First we will just make sure that there are any migrations to run. If there
        // aren't, we will just make a note of it to the developer.
        if (count($mappings) == 0) {
            $this->note('<info>Nothing to map</info>');

            return;
        }

        $batch = $this->repository->getNextBatchNumber();

        $step = Arr::get($options, 'step', false);
        $index = Arr::get($options, 'index');

        foreach ($mappings as $file) {
            $this->runMap($file, $batch, $index);

            if ($step) {
                $batch++;
            }
        }
    }
public function runMappingList ( array $ mappings , array $ options = [ ] ) { // First we will just make sure that there are any migrations to run. If there // aren't, we will just make a note of it to the developer. if ( count ( $ mappings ) == 0 ) { $ this -> note ( '<info>Nothing to map</info>' ) ; return ; } $ batch = $ this -> repository -> getNextBatchNumber ( ) ; $ step = Arr :: get ( $ options , 'step' , false ) ; $ index = Arr :: get ( $ options , 'index' ) ; foreach ( $ mappings as $ file ) { $ this -> runMap ( $ file , $ batch , $ index ) ; if ( $ step ) { $ batch ++ ; } } }
Run an array of mappings.

@param array $mappings
@param array $options
Run an array of mappings .