From 97a6152ea9baa8e8fe47ee45547577ccded47bb5 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Thu, 25 Apr 2024 17:47:55 -0500 Subject: [PATCH] update comment per @uberbrady --- routes/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 9ad3ae2c13..c462e27ca4 100644 --- a/routes/api.php +++ b/routes/api.php @@ -532,7 +532,9 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi }); - // pulling this out of resource route group to begin normalizing + // pulling this out of resource route group to begin normalizing for route-model binding. + // this would probably keep working with the resource route group, but the general practice is for + // the model name to be the parameter - and i think it's a good differentiation in the code while we convert the others. Route::patch('/hardware/{asset}', [Api\AssetsController::class, 'update'])->name('api.assets.update'); Route::resource('hardware',