From b20bd4ccf9d32e36d15061b731b5c8455ba17fa4 Mon Sep 17 00:00:00 2001 From: Mitul Golakiya Date: Thu, 23 Jun 2022 11:44:47 +0530 Subject: [PATCH] fix: latest laravel fixes --- src/Commands/Publish/GeneratorPublishCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Publish/GeneratorPublishCommand.php b/src/Commands/Publish/GeneratorPublishCommand.php index 28e526665..761af2a97 100755 --- a/src/Commands/Publish/GeneratorPublishCommand.php +++ b/src/Commands/Publish/GeneratorPublishCommand.php @@ -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);