2016-10-15 29 views

回答

1

只需將該id附加到網址即可。

return redirect('/userpage/' . $id); 

或者用雙引號中的字符串

return redirect("/userpage/{$id}");