public function seedModule(ModuleContainerInterface $module, array $data = [])
    {
        $className = $module->getNamespace().'\\database\\seeds\\DatabaseSeeder';

        if (!class_exists($className)) {
            return false;
        }

        $seeder = app($className, $data);
        $seeder->run();

        $this->output(sprintf('<info>Seeded %s</info> ', $module));

        return $this;
    }
public function seedModule(ModuleContainerInterface $module, array $data = [])
    {
        $className = $module->getNamespace().'\\database\\seeds\\DatabaseSeeder';

        if (!class_exists($className)) {
            return false;
        }

        $seeder = app($className, $data);
        $seeder->run();

        $this->output(sprintf('<info>Seeded %s</info> ', $module));

        return $this;
    }
public function seedModule ( ModuleContainerInterface $ module , array $ data = [ ] ) { $ className = $ module -> getNamespace ( ) . '\\database\\seeds\\DatabaseSeeder' ; if ( ! class_exists ( $ className ) ) { return false ; } $ seeder = app ( $ className , $ data ) ; $ seeder -> run ( ) ; $ this -> output ( sprintf ( '<info>Seeded %s</info> ' , $ module ) ) ; return $ this ; }
Run seeds on a module.

@param ModuleContainerInterface $module
@param array                    $data

@return $this
Run seeds on a module .