Jan 5, 2016
0
Level 23
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¶m[]=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... }
Please or to participate in this conversation.