New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow pass query string into route helper. #1012
Conversation
Can you please also open another PR for the docs? |
Sure, here is the document. PR#330 |
Hey @BoJiaSu! 👋 Sorry for the late reply. It would be better to have a new option in the third argument or add a new argument (fourth) for the query string. The reason behind this is that |
Hi @RomainLanz, 😀 I moved the query params to third argument. Now, the new calling method is: route('posts.show', { id: 1 }, {
query: { foo: 'bar' }
});
// - or -
route('posts.show', { id: 1 }, {
qs: { foo: 'bar' }
});
// => /post/1?foo=bar I will update document's PR later. |
Cool! What do you think @thetutlage? |
Quite nice! Was looking for a way to add Method Spoofing to this helper, this could be a way. Nice job @BoJiaSu ! |
I updated document PR#330. |
This is a much needed feature on the app :) 💯 🎉 |
🎉😍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Proposed changes
Pass query object into route helper second argument to make query string.
Follow issue: #716
Types of changes
Checklist
Further comments
Sample Code