<a href="/site/contact?id={!! 1 !!}&name={!! 2 !!}">fdsaf</a><Br>
<a href="{!! url('site/contact',['id'=>1,'name'=>2]) !!}">test</a>
生成的地址如下:
<a href="/site/contact?id=1&name=2">fdsaf</a><br>
<a href="http://localhost:8000/site/contact/1/2">test</a>
url第二個參數並不是生
http://localhost:8000/site/contact/id/1/name/2
此時並不會跳到http://localhost:8000/site/contact
這個地址請求數據,而是報指不到
其它參考:
http://www.ekan001.com/articles/43