我使用Laravel URL :: Route作为链接页面,我像下面的代码一样传递了查询字符串,但是如何为此添加锚标记?
例如:myproject.local / projects?week_ending = value#anchor
如何使用URL :: Route进行#anchor部分?谢谢
URL::Route('projects', array('week_ending'=>$week_end_day))
答案 0 :(得分:1)
最明显的方法是:
URL::Route('projects', array('week_ending'=>$week_end_day)) . '#anchor'