Skip to content

Commit 8dc62dd

Browse files
committed
Revert var name
1 parent d9b079e commit 8dc62dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Routing/ActionResourceRegistrar.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ protected function getResourceAction($resource, $controller, $method, $options):
1818
$actionName = Str::singular($resource);
1919

2020
if (static::$actionResolver) {
21-
$controllerMethod = call_user_func(static::$actionResolver, $resource, $method);
21+
$actionClass = call_user_func(static::$actionResolver, $resource, $method);
2222
}
2323

24-
if (empty($controllerMethod)) {
25-
$controllerMethod = match ($method) {
24+
if (empty($actionClass)) {
25+
$actionClass = match ($method) {
2626
'index' => 'Get'.ucfirst($resource),
2727
'create' => 'ShowCreate'.ucfirst($actionName),
2828
'show' => 'Show'.ucfirst($actionName),
@@ -34,7 +34,7 @@ protected function getResourceAction($resource, $controller, $method, $options):
3434
}
3535

3636
// Replaces the Controller@action string with the ActionClass string
37-
$action['uses'] = str_replace('\\\\', '\\', "{$controller}\\{$controllerMethod}");
37+
$action['uses'] = str_replace('\\\\', '\\', "{$controller}\\{$actionClass}");
3838

3939
return $action;
4040
}

0 commit comments

Comments
 (0)