|
|
@@ -344,7 +344,7 @@ class RouteBuilder
|
|
|
}
|
|
|
|
|
|
if (is_callable($callback)) {
|
|
|
- $idName = Inflector::singularize($urlName) . '_id';
|
|
|
+ $idName = Inflector::underscore(Inflector::singularize($name)) . '_id';
|
|
|
$path = '/' . $urlName . '/:' . $idName;
|
|
|
$this->scope($path, [], $callback);
|
|
|
}
|