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

Query->paginate not compatible with Eloquent #93

Open
pildit opened this issue Jul 26, 2018 · 0 comments
Open

Query->paginate not compatible with Eloquent #93

pildit opened this issue Jul 26, 2018 · 0 comments

Comments

@pildit
Copy link

pildit commented Jul 26, 2018

I installed the package in my Lumen app ("laravel/lumen-framework": "5.4.*").

I got an error when i'm using the paginate method of the Query class.
As you can see, the signature of the paginate method
public function paginate($per_page = 10, $page_name = "page", $page = null)
is not compatible with the one found in \vendor\illuminate\database\Eloquent\Builder.php

public function paginate($perPage = null, $columns = ['*'], $pageName = 'page', $page = null)
Eloquent/Builder.php

so I had to modify the Model class in order to re-arrange correctly the parameters for paginate.

Is this a bug ??

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

1 participant