Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with paginate #30

Closed
iMohammadd opened this issue Aug 1, 2019 · 1 comment
Closed

issue with paginate #30

iMohammadd opened this issue Aug 1, 2019 · 1 comment

Comments

@iMohammadd
Copy link

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

@mohammad-fouladgar
Copy link
Owner

mohammad-fouladgar commented Aug 3, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants