Caffeinated\Modules\Console\Commands\ModuleDisableCommand::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']->isEnabled($slug)) {
            $this->laravel['modules']->disable($slug);
            $module = $this->laravel['modules']->where('slug', $slug);
            event($slug . '.module.disabled', [$module, null]);
            $this->info('Module was disabled successfully.');
        } else {
            $this->comment('Module is already disabled.');
        }
    }
ModuleDisableCommand