public function loadMigrationsFrom($paths, Model $entity): void
    {
        $id = $entity->getKey();

        if (! isset($this->migrationPaths[$id])) {
            $this->migrationPaths[$id] = $this->getDefaultMigrationPaths();
        }

        $this->migrationPaths[$id] = \array_merge($this->migrationPaths[$id], Arr::wrap($paths));
        $this->migrationPaths[$id] = \array_unique($this->migrationPaths[$id]);
    }
public function loadMigrationsFrom($paths, Model $entity): void
    {
        $id = $entity->getKey();

        if (! isset($this->migrationPaths[$id])) {
            $this->migrationPaths[$id] = $this->getDefaultMigrationPaths();
        }

        $this->migrationPaths[$id] = \array_merge($this->migrationPaths[$id], Arr::wrap($paths));
        $this->migrationPaths[$id] = \array_unique($this->migrationPaths[$id]);
    }
public function loadMigrationsFrom ( $ paths , Model $ entity ) : void { $ id = $ entity -> getKey ( ) ; if ( ! isset ( $ this -> migrationPaths [ $ id ] ) ) { $ this -> migrationPaths [ $ id ] = $ this -> getDefaultMigrationPaths ( ) ; } $ this -> migrationPaths [ $ id ] = \ array_merge ( $ this -> migrationPaths [ $ id ] , Arr :: wrap ( $ paths ) ) ; $ this -> migrationPaths [ $ id ] = \ array_unique ( $ this -> migrationPaths [ $ id ] ) ; }
Load migrations from a specific path.

@param  string|array  $paths
@param  \Illuminate\Database\Eloquent\Model  $entity

@return void
Load migrations from a specific path .