We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5355d6 commit b20bd4cCopy full SHA for b20bd4c
src/Commands/Publish/GeneratorPublishCommand.php
@@ -73,7 +73,7 @@ private function updateRouteServiceProvider()
73
74
$fileContent = file_get_contents($routeServiceProviderPath);
75
76
- $search = "Route::prefix('api')".PHP_EOL.str(' ')->repeat(16)."->middleware('api')";
+ $search = "Route::middleware('api')".PHP_EOL.str(' ')->repeat(16)."->prefix('api')";
77
$beforeContent = str($fileContent)->before($search);
78
$afterContent = str($fileContent)->after($search);
79
0 commit comments