我正在尝试在我的刀片中获取带有查询的完整网址,但最后是fullUrlWithQuery
添加字段标记。为什么会发生这种情况,如何阻止它将令牌添加到网址?
我的链接生成器就像这样
<li><a href="{{request()->fullUrlWithQuery(['price' =>'low-high'])}}">Low-High</a></li>
它正在生成的网址是
http://localhost:8000/c/fish?_token=exKaUn3U0yyIsblo7IB9ZXWFq4SqThHHXp9L6oot&price=low-high
我期待它生成的地方
http://localhost:8000/c/fish?price=low-high
如何阻止它添加令牌?任何想法guyz
答案 0 :(得分:0)
{{ request()->fullUrlWithQuery(['sort' => 'priceLowToHigh']) }}