Caffeinated\Modules\Console\Commands\ModuleEnableCommand::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed
    public function fire()
    {
        $slug = $this->argument('slug');
        if ($this->laravel['modules']->isDisabled($slug)) {
            $this->laravel['modules']->enable($slug);
            $module = $this->laravel['modules']->where('slug', $slug);
            event($slug . '.module.enabled', [$module, null]);
            $this->info('Module was enabled successfully.');
        } else {
            $this->comment('Module is already enabled.');
        }
    }
ModuleEnableCommand