Fix query string not being passed to laravel