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->enablePlugin($pluginName); $plugin = PluginVersion::where('code', $pluginName)->first(); $plugin->is_disabled = false; $plugin->save(); $this->output->writeln(sprintf('%s: enabled.', $pluginName)); } /** * Get the console command arguments. * @return array */ protected function getArguments() { return [ ['name', InputArgument::REQUIRED, 'The name of the plugin. Eg: AuthorName.PluginName'], ]; } }