Nwidart\Modules\Commands\SeedCommand::dbSeed PHP 메소드

dbSeed() 보호된 메소드

Seed the specified module.
protected dbSeed ( string $className ) : array
$className string
리턴 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);
    }