Skip to content

Commit

Permalink
fix: latest laravel fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Jun 23, 2022
1 parent e5355d6 commit b20bd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Publish/GeneratorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function updateRouteServiceProvider()

$fileContent = file_get_contents($routeServiceProviderPath);

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

Expand Down

0 comments on commit b20bd4c

Please sign in to comment.