From 04319ac01410c02f921b4254fa05cd11aa89f28d Mon Sep 17 00:00:00 2001 From: ZedoX <75579178+Z3d0X@users.noreply.github.com> Date: Mon, 19 Feb 2024 19:55:52 +0500 Subject: [PATCH] Fix Resource Registration (#140) * fix: page-resource registration * Fix styling --------- Co-authored-by: Z3d0X --- src/FilamentFabricatorPlugin.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/FilamentFabricatorPlugin.php b/src/FilamentFabricatorPlugin.php index 77883aa..7da0d1f 100644 --- a/src/FilamentFabricatorPlugin.php +++ b/src/FilamentFabricatorPlugin.php @@ -7,7 +7,6 @@ use Filament\Panel; use Pboivin\FilamentPeek\FilamentPeekPlugin; use Z3d0X\FilamentFabricator\Enums\BlockPickerStyle; -use Z3d0X\FilamentFabricator\Resources\PageResource; class FilamentFabricatorPlugin implements Plugin { @@ -27,9 +26,9 @@ public function getId(): string public function register(Panel $panel): void { - $panel->resources([ - config('filament-fabricator.page-resource') ?? PageResource::class, - ]); + $panel->resources(array_filter([ + config('filament-fabricator.page-resource'), + ])); if (! $panel->hasPlugin(FilamentPeekPlugin::ID)) { //Automatically register FilamentPeekPlugin if it is not already registered