shez1983's avatar

Pagination, adding custom (array) parameters to render() using appends()

so I have a search form where I allow users to enter multiple items of same kind which results in an array.. so when i press submit it is sent as: param[]=2&param[]=4 etc.. but I am not sure how to add these to the paginator?

{!! $jobs->appends(...)->render() !!}    

I was manually trying to create this but not sure how to? I can do a loop on param

foreach ( $param as p ){ // not sure what to do here? an array will just overwrite the old value? a string wouldnt work... }

0 likes
0 replies

Please or to participate in this conversation.