Answer the question
In order to leave comments, you need to log in
How to properly handle Laravel Route parameter?
For example, let's take a route:
Route::get('product/{id}', '[email protected]')
Send the men or woman value to the id parameter.
And we create one more route:
Route::get('product/{id}/{category}', '[email protected]')
How to replace the id parameter with the value of the previous route?
Answer the question
In order to leave comments, you need to log in
public function category(Request $request, $id, $category)
{
//
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question