From f4d4c7d1526aee393efc7d2a402f8d6185575ce2 Mon Sep 17 00:00:00 2001 From: Solomon Ochepa Date: Thu, 22 Aug 2024 03:08:13 +0100 Subject: [PATCH] [test] Update snapshots --- ...leMakeCommandTest__test_it_generates_api_route_file__1.txt | 2 +- ...leMakeCommandTest__test_it_generates_web_route_file__1.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'); });