Using limit parameter in paginate function
问题 Is it possible to use 'limit' parameter in paginate() function? I'm trying this: $users->where(...)->limit(50)->paginate($page) ...and now, if I have 100 users in the database then the response from paginate function will be all 100 users instead of 50 (or number of users defined with limit parameter). So, my question is: is it possible to implement limit parameter when I use paginate function? 回答1: No, it's not possible to limit the query when using pagination. Query pagination uses skip()