-
Notifications
You must be signed in to change notification settings - Fork 259
add match function #848
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
base: 2.x
Are you sure you want to change the base?
add match function #848
Conversation
…thod and keep default select GET method
…ly GET method to support any method and keep default select GET method
on my project, the changed code is word, now |
Can you share an example of some code showing how you would use this? |
sure, I have been updated the readme I also can demo a sample example This is my project submit form helper:
and than I set
because too many page need to use ajax, if each page witre one time submit form logic too duplicate, and not each also has id, so, add id params and callback pass id is not good idea, so, I think use route match to get route params may be better. you also can see my project:
|
https://github.com/Mensa-Hong-Kong/New-Official-Website/pull/110/files#diff-8459b0aa95c878f3fcec2452a009295922ccd4a2c79d32cf02171c0c1c7ba41c
On my project, I using axios to submit form, than I need get the item id on the callback, so, I want to add match function to easly get the id from response.request.responseURL
and than, laravel also has same function on php
https://stackoverflow.com/questions/40690202/previous-route-name-in-laravel-5-1-5-8