Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Api pagination is not working #136

Open
ulshamim opened this issue Jan 11, 2016 · 2 comments
Open

Api pagination is not working #136

ulshamim opened this issue Jan 11, 2016 · 2 comments
Labels

Comments

@ulshamim
Copy link

I have completed a project using your package. Now my client want to use pagination in existing api which is not working.

When I have used

 $news = $this->newsRepository->paginate(1);

it''s working but when I use

    $news = $this->newsRepository->findAllBy('publish', '1')->paginate(1);

not working.
Please help.

@rodelapena
Copy link

same here, updated from laravel 5.1 to 5.2 and pagination is not working, find some references to the function all() that is not supported anymore, maybe something in the core of the api generator is using it but i cant find it. please help

@rodelapena
Copy link

i found the problem, it was a nginx problem, it was removing parameters sent to php cgi. with apache2 (php as a module) never had this problem.

for those using nginx change location / try_files to:

try_files $uri $uri/ /index.php$is_args$args;

hope it helps

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

No branches or pull requests

3 participants