取得route中設定的網址參數 Route PHP Route::get('/products/{category}/{pid}-{name}', 'ProductC@product'); 1 Route::get('/products/{category}/{pid}-{name}', '[email protected]'); Controller PHP $pid = $request->route('pid'); 1 $pid = $request->route('pid');