diff --git a/src/Generators/RouteGenerator.php b/src/Generators/RouteGenerator.php index 0c22b9e..649aa06 100644 --- a/src/Generators/RouteGenerator.php +++ b/src/Generators/RouteGenerator.php @@ -14,7 +14,7 @@ class RouteGenerator extends BaseGenerator { $webRoutePath = $this->makeRouteFile(base_path('routes'), $type.'.php'); - $this->files->append($webRoutePath, $this->getContent('route-'.$type)); + $this->files->append($webRoutePath, $this->getContent('routes/'.$type)); $this->command->info($this->modelNames['model_name'].' resource route generated on routes/'.$type.'.php.'); } diff --git a/src/stubs/route-api.stub b/src/stubs/routes/api.stub similarity index 100% rename from src/stubs/route-api.stub rename to src/stubs/routes/api.stub diff --git a/src/stubs/route-web.stub b/src/stubs/routes/web.stub similarity index 100% rename from src/stubs/route-web.stub rename to src/stubs/routes/web.stub