@@ -27,7 +27,7 @@ class CreateRoutesCommand extends Command
27
27
{--routes-prefix=default-form : Prefix of the route group.}
28
28
{--controller-directory= : The directory where the controller is under.}
29
29
{--without-route-clause : Create the routes without where clause for the id.}
30
- {--routes-type= : The type of the route to create "api", "api-docs" or web. }
30
+ {--routes-type= : The type of the route to create. (i.e., "api", "api-docs" or " web".) }
31
31
{--api-version= : The api version to prefix your resurces with.}
32
32
{--template-name= : The template name to use when generating the code.} ' ;
33
33
@@ -62,11 +62,11 @@ public function handle()
62
62
}
63
63
64
64
$ stub = $ this ->getRoutesStub ($ input ->type );
65
- $ controllnerName = $ this ->getControllerName ($ input ->controllerName , $ input ->controllerDirectory );
66
- $ controllerNamespace = $ this ->getControllersNamespace ($ controllnerName , $ input ->controllerDirectory );
65
+ // $controllnerName = $this->getControllerName($input->controllerName, $input->controllerDirectory);
66
+ $ controllerNamespace = $ this ->getControllersNamespace ($ input -> controllerName , $ input ->controllerDirectory );
67
67
$ useControllerLine = $ this ->getUseClassCommand ($ controllerNamespace );
68
68
$ this ->replaceModelName ($ stub , $ input ->modelName )
69
- ->replaceControllerName ($ stub , $ controllnerName )
69
+ ->replaceControllerName ($ stub , $ input -> controllerName )
70
70
->replaceRouteNames ($ stub , $ this ->getModelName ($ input ->modelName ), $ namePrefix )
71
71
->processRoutesGroup ($ stub , $ input )
72
72
->replaceRouteIdClause ($ stub , $ this ->getRouteIdClause ($ input ->withoutRouteClause ))
@@ -89,7 +89,7 @@ protected function getControllersNamespace($controllnerName, $controllerDirector
89
89
{
90
90
$ controllerPath = Config::getControllersPath ($ controllerDirectory );
91
91
92
- $ path = Helpers::getAppNamespace ($ controllerDirectory , $ controllerPath , $ controllnerName );
92
+ $ path = Helpers::getAppNamespace ($ controllerPath , $ controllnerName );
93
93
94
94
return Helpers::fixNamespace ($ path );
95
95
}
0 commit comments