2014-10-29 112 views
0

我使用Laravel URL :: Route作爲鏈接頁面,並且我傳遞了如下代碼所示的查詢字符串,但是如何爲此添加錨點標記?如何生成具有錨點的Laravel鏈接

如:myproject.local /項目week_ending =值#錨

如何做URL是#anchor部分::路線?謝謝

URL::Route('projects', array('week_ending'=>$week_end_day)) 

回答

1

造成這種情況的最明顯的方法是:

URL::Route('projects', array('week_ending'=>$week_end_day)) . '#anchor'