argument('name'); $pluginName = $pluginManager->normalizeIdentifier($pluginName); if (!$pluginManager->hasPlugin($pluginName)) { return $this->error(sprintf('Unable to find a registered plugin called "%s"', $pluginName)); } // Disable this plugin $pluginManager->disablePlugin($pluginName); $plugin = PluginVersion::where('code', $pluginName)->first(); $plugin->is_disabled = true; $plugin->save(); $this->output->writeln(sprintf('%s: disabled.', $pluginName)); } /** * Get the console command arguments. * @return array */ protected function getArguments() { return [ ['name', InputArgument::REQUIRED, 'The name of the plugin. Eg: AuthorName.PluginName'], ]; } }