File tree Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Expand file tree Collapse file tree 2 files changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ protected function registerRoutes()
180
180
return ;
181
181
}
182
182
183
- preg_match ( ' /\s+\/\*\*\n\s+\*\s(\w+\s)+"web"\s(\w+\s)+\w+.\n/ ' , $ provider , $ match ) ;
184
- $ provider = str_replace ($ match [ 0 ] , $ map . $ match [ 0 ] , $ provider );
183
+ $ toReplace = ' $this->routes(function () { ' ;
184
+ $ provider = str_replace ($ toReplace , $ toReplace . $ map , $ provider );
185
185
/********** Function Call **********/
186
186
187
187
$ map_call = file_get_contents ($ this ->stub_path . '/routes/map_call.stub ' );
Original file line number Diff line number Diff line change 1
-
2
-
3
- /**
4
- * Define the "{{singularSnake}}" routes for the application.
5
- *
6
- * These routes are typically stateless.
7
- *
8
- * @return void
9
- */
10
- protected function map{{singularClass}}Routes()
11
- {
12
- Route::prefix('{{singularSlug}}')
13
- ->middleware(['web'])
14
- ->namespace($this->namespace)
15
- ->group(base_path('routes/{{singularSlug}}.php'));
16
- }
17
1
2
+ Route::prefix('{{singularSlug}}')
3
+ ->middleware(['web'])
4
+ ->namespace($this->namespace)
5
+ ->group(base_path('routes/{{singularSlug}}.php'));
You can’t perform that action at this time.
0 commit comments