From 95430035362a5ace6107bc03e0df9bbec715793e Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Tue, 17 Sep 2024 20:06:59 +0300 Subject: [PATCH] fix ->isEnabled() --- src/FilamentAlertsPlugin.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/FilamentAlertsPlugin.php b/src/FilamentAlertsPlugin.php index 0c44d5a..3866cd5 100644 --- a/src/FilamentAlertsPlugin.php +++ b/src/FilamentAlertsPlugin.php @@ -226,15 +226,6 @@ public function apiModel(?string $apiModel = \App\Models\User::class): static public function boot(Panel $panel): void { - if(class_exists(Module::class)){ - if(\Nwidart\Modules\Facades\Module::find('FilamentAlerts')->isEnabled()){ - $this->isActive = true; - } - } - else { - $this->isActive = true; - } - if($this->isActive) { if (class_exists(FilamentSettingsHub::class) && $this->useSettingHub) { FilamentSettingsHub::register([