I have the following in my routes
Route::get('c/maintenances/{contractor_user_id}', 'Maintenance\Api\ApiContractorMaintenanceController@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?