From 30420757c2cda5de1da03c18420ae2fef192f753 Mon Sep 17 00:00:00 2001 From: awcodes Date: Fri, 4 Nov 2022 16:26:06 -0400 Subject: [PATCH] Fix: action names --- src/Http/Livewire/QuickCreateMenu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Livewire/QuickCreateMenu.php b/src/Http/Livewire/QuickCreateMenu.php index 52c1bac..a6a27cf 100644 --- a/src/Http/Livewire/QuickCreateMenu.php +++ b/src/Http/Livewire/QuickCreateMenu.php @@ -173,7 +173,7 @@ public function getFilamentResources(): array ->map(function ($resourceName) { $resource = App::make($resourceName); if ($resource->canCreate()) { - $actionName = 'create'.Str::of($resource->getLabel())->camel(); + $actionName = 'create'.Str::of($resource->getModelLabel())->camel(); return [ 'resource_name' => $resourceName,