diff --git a/src/Providers/SoapServiceProvider.php b/src/Providers/SoapServiceProvider.php index 824e6c5..d794dc5 100644 --- a/src/Providers/SoapServiceProvider.php +++ b/src/Providers/SoapServiceProvider.php @@ -28,7 +28,7 @@ public function boot() protected function registerRay() { - if (!SoapWatcher::rayExists()) { + if (!class_exists("Spatie\\LaravelRay\\Ray")) { return; } diff --git a/src/Ray/SoapWatcher.php b/src/Ray/SoapWatcher.php index 923493c..792457b 100644 --- a/src/Ray/SoapWatcher.php +++ b/src/Ray/SoapWatcher.php @@ -12,10 +12,6 @@ class SoapWatcher extends Watcher { - public static function rayExists(): bool - { - return class_exists("Spatie\\Ray\\Ray"); - } public function register(): void {