I have the following in my routes
Route::get('c/maintenances/{contractor_user_id}', 'MaintenanceApiApiContractorMaintenanceController@index');
is there a way for me to get the /{contractor_user_id}
by reading the url?
For example
$current_url = Request::url();
dd($current_url);
returns
"http://127.0.0.1:8000/api/c/maintenances/3"
Is there a way to alienate the 3
from the url and return it?
question from:
https://stackoverflow.com/questions/65916129/laravel-get-parameters-from-url 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…