这是我从 laravel 应用程序中搜索的视图..
{{ Form::open(array('method' => 'get', 'url' => 'search'))}}
<input type="text" name="location" >
<input type="text" name="query" >
<input type="submit" >
{{ Form::close() }}
当我输入一些东西并按回车时,页面正在带我
然后我的网址是这样的
myapp.com/search?query=abc&location=uk
如何编写路由以获取控制器内的 url 值?请帮助