Skip to content

Commit b9836c4

Browse files
committed
fix: broken step to create route
1 parent 9e43454 commit b9836c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/ApiControllerMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected function addRoutes()
158158
$name = $this->qualifyClass($this->getNameInput());
159159

160160
$replacements = [
161-
'{{route.name}}' => strtolower(Str::plural($this->customClasses['rawName'])),
161+
'{{route.name}}' => strtolower(Str::plural($this->option('model'))),
162162
'{{route.controller}}' => '\\'.$name.'::class',
163163
];
164164

0 commit comments

Comments
 (0)