Target url: index.php/1/category/list? cate_id=12
Achieve the goal: after the number 1, the part before the question mark (i.e. category/list) is obtained as a parameter
Route::get('/{id}/*',function($id, $path){
//
}
The above code does not work, just understand the meaning.
The key to the problem is that the path part is of variable length, it may be first/second, or first/second/third.
How should routing be written?
ringa_lee