Nwidart\Modules\Commands\UseCommand::fire PHP Méthode

fire() public méthode

Execute the console command.
public fire ( ) : mixed
Résultat mixed
    public function fire()
    {
        $module = Str::studly($this->argument('module'));
        if (!$this->laravel['modules']->has($module)) {
            $this->error("Module [{$module}] does not exists.");
            return;
        }
        $this->laravel['modules']->setUsed($module);
        $this->info("Module [{$module}] used successfully.");
    }