diff --git a/src/Routing/ActionResourceRegistrar.php b/src/Routing/ActionResourceRegistrar.php index af6b4b2..cc6d22f 100644 --- a/src/Routing/ActionResourceRegistrar.php +++ b/src/Routing/ActionResourceRegistrar.php @@ -14,8 +14,7 @@ protected function getResourceAction($resource, $controller, $method, $options): { $action = parent::getResourceAction($resource, $controller, $method, $options); - $resource = str_replace('.', '_', $resource); - $resource = Str::camel($resource); + $resource = Str::camel(str_replace('.', '_', $resource)); $actionName = Str::singular($resource); if (static::$actionResolver) {