diff --git a/src/Commands/stubs/routes/api.stub b/src/Commands/stubs/routes/api.stub index 4941c53b5..10ae87e72 100755 --- a/src/Commands/stubs/routes/api.stub +++ b/src/Commands/stubs/routes/api.stub @@ -15,5 +15,5 @@ use Illuminate\Support\Facades\Route; */ Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () { - Route::get('$LOWER_NAME$', fn (Request $request) => $request->user())->name('$LOWER_NAME$); + Route::get('$LOWER_NAME$', fn (Request $request) => $request->user())->name('$LOWER_NAME$'); }); diff --git a/tests/Commands/__snapshots__/ModuleMakeCommandTest__it_generates_api_route_file__1.txt b/tests/Commands/__snapshots__/ModuleMakeCommandTest__it_generates_api_route_file__1.txt index 172572266..b7fd90bac 100644 --- a/tests/Commands/__snapshots__/ModuleMakeCommandTest__it_generates_api_route_file__1.txt +++ b/tests/Commands/__snapshots__/ModuleMakeCommandTest__it_generates_api_route_file__1.txt @@ -15,5 +15,5 @@ use Illuminate\Support\Facades\Route; */ Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () { - Route::get('blog', fn (Request $request) => $request->user())->name('blog); + Route::get('blog', fn (Request $request) => $request->user())->name('blog'); });