Nwidart\Modules\Traits\MigrationLoaderTrait::loadMigrationFiles PHP Method

loadMigrationFiles() protected method

Include all migrations files from the specified module.
protected loadMigrationFiles ( string $module )
$module string
    protected function loadMigrationFiles($module)
    {
        $path = $this->laravel['modules']->getModulePath($module) . $this->getMigrationGeneratorPath();
        $files = $this->laravel['files']->glob($path . '/*_*.php');
        foreach ($files as $file) {
            $this->laravel['files']->requireOnce($file);
        }
    }