Farshad
6 months ago
1114
3
Lumen

Manage Patch routes

Posted 6 months ago by Farshad

I have some route like below for example

Route::patch('/users/{id}/update-name', '[email protected]_name')
Route::patch('/users/{id}/update-password', '[email protected]_password')

I need to find is there any good structure for manage Route like this to stop write action in the url like this

Route::patch('/users/{id}', '[email protected]_name')
Route::patch('/users/{id}', '[email protected]_password')

Please sign in or create an account to participate in this conversation.