beniamino's avatar

[SOLVED] L5 pagination appends array

Hi folks, i would need to pass query string to my paginator pages links. I' have done that with this code

{!! $items->appends(Request::query())->render() !!}

It works very well with a simple key:value pair, but it wrong render arrays (like multiselects, checkboxes, etc.).

I would expect something like that for a multiselect called "item": item[]=1&item[]=2.... but i've got item%5B1%5D=1&item%5B1%5D=7

Any suggestions?

0 likes
1 reply
beniamino's avatar

Ok i've done that using urldecode

 {!! urldecode($items->appends(Request::query())->render()) !!}

is there a better solution?

Please or to participate in this conversation.