mohammad-fouladgar/eloquent-builder

issue with paginate

Closed this issue · 1 comments

hi mohammad
thank you for your greate and useful package

i have a issue with paginating
how can i use pagination when use your package
i get Not found the filter: PageFilter error

Hi Dear @iMohammadd ,
Thanks so much.

Try this :

$results = EloquentBuilder::to(
User::class,
$your_array_filters
)->paginate();

i get Not found the filter: PageFilter error

Tip: It's recommended present filters inside a filter key in query string like this: user/search?filter[age_more_than]=25&filter[gender]=male
and then get them in this way: $request->only('filter').

Please read full the issues #25 and #23 for resolve.