Nwidart\Modules\Commands\EnableCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed
    public function fire()
    {
        $module = $this->laravel['modules']->findOrFail($this->argument('module'));
        if ($module->disabled()) {
            $module->enable();
            $this->info("Module [{$module}] enabled successful.");
        } else {
            $this->comment("Module [{$module}] has already enabled.");
        }
    }