diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt index bf810053c..9a2217a9f 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_api_route_file__1.txt @@ -4,5 +4,5 @@ use Illuminate\Support\Facades\Route; use Modules\Blog\Http\Controllers\BlogController; Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () { - Route::apiResource('blogs', BlogController::class); + Route::apiResource('blogs', BlogController::class)->names('$PLURAL_LOWER_NAME$'); }); diff --git a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt index 5df0cdcf6..1b2755ac4 100644 --- a/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt +++ b/tests/Commands/Make/__snapshots__/ModuleMakeCommandTest__test_it_generates_web_route_file__1.txt @@ -3,6 +3,6 @@ use Illuminate\Support\Facades\Route; use Modules\Blog\Http\Controllers\BlogController; -Route::group([], function () { - Route::resource('blogs', BlogController::class); +Route::middleware(['auth', 'verified'])->group(function () { + Route::resource('blogs', BlogController::class)->names('blogs'); });