Nwidart\Modules\Commands\SeedCommand::fire PHP Метод

fire() публичный Метод

Execute the console command.
public fire ( ) : mixed
Результат mixed
    public function fire()
    {
        try {
            if ($name = $this->argument('module')) {
                $name = Str::studly($name);
                $this->moduleSeed($this->getModuleByName($name));
            } else {
                $modules = $this->getModuleRepository()->getOrdered();
                array_walk($modules, [$this, 'moduleSeed']);
                $this->info('All modules seeded.');
            }
        } catch (\Exception $e) {
            $this->error($e->getMessage());
        }
    }