-
Notifications
You must be signed in to change notification settings - Fork 612
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
[Feature Request] Eloquent Api Resource Pagination #641
Comments
The same could be said for
The response should be similar to |
+1 |
This is now supported in Scribe 🙂. |
@shalvah could you please update the new documentation for this paginate feature? thanks! |
@mehrancodes Read the last few comments. |
Whoops, I see those links are broken. You can just go to scribe.rtfd.io and search for "API Resources". |
We should also support pagination for api resources
https://laravel.com/docs/master/eloquent-resources#pagination
Should we add another annotation like @apiResourcePagination
There are 2 methods for pagination ( https://laravel.com/docs/5.8/pagination )
simple and default
So
@apiResourcePaginate resolves to Model::paginate(15);
@apiResourcePaginate simple resolves to Model::simplePaginate(15);
What do you guys think about?
The text was updated successfully, but these errors were encountered: