📜  Laravel 路由组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.455000             🧑  作者: Mango

代码示例6
Route::get('/menu/{category}/{product}/{item}', ['as' => 'named.route' , 'uses' => 'MenuController@listItem']);

// to get the actual linke
route('named.route', ['category' => $category->id, 'product' => $product->id, 'item' => $item->id]);