Browse Source

Move route stubs to stubs/routes directory

tags/1.1.6
Nafies Luthfi 8 years ago
parent
commit
b5f017915e
  1. 2
      src/Generators/RouteGenerator.php
  2. 0
      src/stubs/routes/api.stub
  3. 0
      src/stubs/routes/web.stub

2
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.');
}

0
src/stubs/route-api.stub → src/stubs/routes/api.stub

0
src/stubs/route-web.stub → src/stubs/routes/web.stub

Loading…
Cancel
Save