@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -112,13 +112,13 @@ |
||
| 112 | 112 | { |
| 113 | 113 | // get plural from model name |
| 114 | 114 | $pluralModel = str_plural($this->model); |
| 115 | - // create container folder |
|
| 115 | + // create container folder |
|
| 116 | 116 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}")); |
| 117 | - // add requests folder |
|
| 117 | + // add requests folder |
|
| 118 | 118 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Requests")); |
| 119 | - // add repositories folder |
|
| 119 | + // add repositories folder |
|
| 120 | 120 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/")); |
| 121 | - // add Interfaces folder |
|
| 121 | + // add Interfaces folder |
|
| 122 | 122 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/Interfaces")); |
| 123 | 123 | } |
| 124 | 124 | } |