getNextBatchNumber() public méthode

* Get the next mapping batch number
public getNextBatchNumber ( )
Exemple #1
0
 /**
  * Run an array of mappings.
  *
  * @param array $mappings
  * @param array $options
  */
 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);
     foreach ($mappings as $file) {
         $this->runMap($file, $batch);
         if ($step) {
             $batch++;
         }
     }
 }