Kev*_*gst 1 php forms url get laravel
我在laravel中得到了一个表格 Method='GET'
{{ Form::open(array('method' => 'get')) }}
Run Code Online (Sandbox Code Playgroud)
我在那里有一些输入字段:city, skillLevel, province and category.当我提交表单时,我得到一个像这样的可怕网址:
http://localhost/vacatures?city=somehwhere&skillLevel=junior&province=Zeeland&category=django
Run Code Online (Sandbox Code Playgroud)
但我想要这样的事情:
http://localhost/vacatures/somewhere/junior/Zeeland/django
Run Code Online (Sandbox Code Playgroud)
我如何实现这一目标?我尝试过给出一个路由属性和一个动作分配,但是没有用.
| 归档时间: |
|
| 查看次数: |
18314 次 |
| 最近记录: |