Closed chrysanthos closed 4 years ago
Yeah, It would be great to just have the array literals in the query string.
Does this work across the board?
I'd be open to a PR to change this if so.
Also, what about key:value pairs, I'm assuming we'd have to fall back to the current approach?
+1 for this. It would be great to have functionality similar to vue-router, where you can define what kind of query builder to use. This way it'll be a lot more flexible.
Is your feature request related to a problem? Please describe. The new query string feature is an awesome addition to the package. I had a couple of projects that I'd like to migrate to Livewire and the "query string automatic update" simplifies a lot of things that I needed to implement on my own in the project I am currently using Livewire.
Until today I was on version 0.5.3 and while trying to update I was looking into altering the behavior of how the query string is constructed (so it matches the previous urls) and remove a lot of code that I had to maintain on my own. It seems like we are unable to change this right now.
In my case I have urls in the form of
while Livewire produces something like this
Describe the solution you'd like I am proposing either:
Additional context This is a topic that everyone has its own way of solving so I think the ideal way is to allow the developer to somehow override this.
I created the ticket to receive feedback whether this is something that makes sense and how this can be implemented. If so, I am willing to make a PR for this.