-
Notifications
You must be signed in to change notification settings - Fork 110
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
Pagination #154
Comments
Hello, Did anyone has the same trouble or it's just me ? Thanks |
Having the same issue. Pagination doesnt work for user list and the list doesn't recognize more than "users_per_page" value. Even if you add more users, the dashboard would only show total of "users_per_page"-value users. The users table in DB does have all the users added. |
What version or Laravel are you using? |
Laravel 5.3.30 |
Update: Was able to fix the pagination issue on the user list page by using paginate method on the return of all() in app/Authentication/Repository/UserRepositorySearchFilter.php. Havent tested to ensure any other regression exists. Not quite sure why the array_unique is used there either since user emails will be unique as per DB. So I basically replaced:
with
Not the best solution i guess, but it works for the time being. |
FYI : # php artisan --version This solved my problem ! Thanks. |
@jicao : I didnt test the other usages of the function to make sure something else didn't stop working. ;) Thats why I mentioned that its probably not the best solution. But yes, the pagination on the user list does work after this change. |
Hello,
(First, GREAT WORK ! Thanks)
I can't get the pagination to work...
When I put
"users_per_page" => 1,
and then insert 2 users into my app db, when I want to click on the arrow (It detects tha pagination is needed!) to go to next page, it links me to http://myapp.com/?page=2 and even if I manually put "http://myapp.com/admin/users/list?page=2", there is no error but it's the "first page" with the first user that is shown. I can't see the second one.Any help ?
Thanks
The text was updated successfully, but these errors were encountered: