From 0ca31d97ca38e5b4da7366f7f9bcfd43d8500354 Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Tue, 17 Sep 2024 17:32:05 +0300 Subject: [PATCH] fix ->isEnabled() --- src/FilamentInvoicesPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilamentInvoicesPlugin.php b/src/FilamentInvoicesPlugin.php index 4373fcf..6410066 100644 --- a/src/FilamentInvoicesPlugin.php +++ b/src/FilamentInvoicesPlugin.php @@ -20,7 +20,7 @@ public function getId(): string public function register(Panel $panel): void { if(class_exists(Module::class)){ - if(\Nwidart\Modules\Facades\Module::find('FilamentInvoices')->isEnabled()){ + if(\Nwidart\Modules\Facades\Module::find('FilamentInvoices')?->isEnabled()){ $this->isActive = true; } }