I have something like this:
Route::get('admin/user/modify', 'admin@user_modify');
But I should convert it to something like this:
Route::get('admin/user/modify/(:string)', 'admin@user_modify (with $string)');
Basically, I want to pass a string variable to my function.
How can I do this?
One more thing, what if the user doesn't pass a value and only browse admin/user/modify/
, what will happen then? Should I manually check it or can I return it to 404 etc. if the value is not entered?