src/Commands/SeedCommand.php
public function getSeederNames($name)
    {
        $name = Str::studly($name);

        $seederPath = GenerateConfigReader::read('seeder');
        $seederPath = str_replace('/', '\\', $seederPath->getPath());

        $foundModules = [];
        foreach ($this->laravel['modules']->config('scan.paths') as $path) {
            $namespace = array_slice(explode('/', $path), -1)[0];
            $foundModules[] = $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder';
        }

        return $foundModules;
    }
public function getSeederNames($name)
    {
        $name = Str::studly($name);

        $seederPath = GenerateConfigReader::read('seeder');
        $seederPath = str_replace('/', '\\', $seederPath->getPath());

        $foundModules = [];
        foreach ($this->laravel['modules']->config('scan.paths') as $path) {
            $namespace = array_slice(explode('/', $path), -1)[0];
            $foundModules[] = $namespace . '\\' . $name . '\\' . $seederPath . '\\' . $name . 'DatabaseSeeder';
        }

        return $foundModules;
    }
public function getSeederNames ( $ name ) { $ name = Str :: studly ( $ name ) ; $ seederPath = GenerateConfigReader :: read ( 'seeder' ) ; $ seederPath = str_replace ( '/' , '\\' , $ seederPath -> getPath ( ) ) ; $ foundModules = [ ] ; foreach ( $ this -> laravel [ 'modules' ] -> config ( 'scan.paths' ) as $ path ) { $ namespace = array_slice ( explode ( '/' , $ path ) , - 1 ) [ 0 ] ; $ foundModules [ ] = $ namespace . '\\' . $ name . '\\' . $ seederPath . '\\' . $ name . 'DatabaseSeeder' ; } return $ foundModules ; }
Get master database seeder name for the specified module under a different namespace than Modules.

@param string $name

@return array $foundModules array containing namespace paths
Get master database seeder name for the specified module under a different namespace than Modules .