From b5f017915e90f1313fce972bb034c02efbaee705 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sat, 21 Jul 2018 07:52:26 +0800 Subject: [PATCH] Move route stubs to stubs/routes directory --- src/Generators/RouteGenerator.php | 2 +- src/stubs/{route-api.stub => routes/api.stub} | 0 src/stubs/{route-web.stub => routes/web.stub} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename src/stubs/{route-api.stub => routes/api.stub} (100%) rename src/stubs/{route-web.stub => routes/web.stub} (100%) 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