Skip to content

Commit

Permalink
Inline str_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
CWAscend committed Oct 17, 2024
1 parent b258f5c commit b814e2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Routing/ActionResourceRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b814e2f

Please sign in to comment.