diff --git a/src/Plugin.php b/src/Plugin.php index bd7fc99..4445a80 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -258,8 +258,9 @@ public function isAvailablePlugin(?string $pluginFskey = null) $plugin->manualAddNamespace(); $serviceProvider = sprintf('%s\\Providers\\%sServiceProvider', $plugin->getClassNamespace(), $pluginFskey); + $pluginServiceProvider = sprintf('%s\\Providers\\PluginServiceProvider', $plugin->getClassNamespace(), $pluginFskey);; - return class_exists($serviceProvider); + return class_exists($serviceProvider) || class_exists($pluginServiceProvider); } catch (\Throwable $e) { \info("{$pluginFskey} registration failed, not a valid plugin: ".$e->getMessage());