Skip to content

Commit b20bd4c

Browse files
committed
fix: latest laravel fixes
1 parent e5355d6 commit b20bd4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Publish/GeneratorPublishCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private function updateRouteServiceProvider()
7373

7474
$fileContent = file_get_contents($routeServiceProviderPath);
7575

76-
$search = "Route::prefix('api')".PHP_EOL.str(' ')->repeat(16)."->middleware('api')";
76+
$search = "Route::middleware('api')".PHP_EOL.str(' ')->repeat(16)."->prefix('api')";
7777
$beforeContent = str($fileContent)->before($search);
7878
$afterContent = str($fileContent)->after($search);
7979

0 commit comments

Comments
 (0)