Laravel表单方法get-url参数

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)

我如何实现这一目标?我尝试过给出一个路由属性和一个动作分配,但是没有用.

Xyr*_*rus 5

也许这个主题可以帮助你 - 如何通过GET方法将参数传递给Laravel?

有2个不错的答案,应该适合您的问题.