Nwidart\Modules\Commands\SeedCommand::dbSeed PHP Method

dbSeed() protected method

Seed the specified module.
protected dbSeed ( string $className ) : array
$className string
return array
    protected function dbSeed($className)
    {
        $params = ['--class' => $className];
        if ($option = $this->option('database')) {
            $params['--database'] = $option;
        }
        if ($option = $this->option('force')) {
            $params['--force'] = $option;
        }
        $this->call('db:seed', $params);
    }