Skip to content

docs(pagination): support for laravel and reorganize #2070

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

Conversation

vinceAmstoutz
Copy link
Contributor

As seen with @dunglas, it's better to use App\ApiResource instead of App\Entity to suit Symfony and Laravel.
It avoids making the equivalence between models and entities in code examples (namespaces among others).

By the way, I've adapted the comments to be compatible with the 2 as well, so
// api/src/Entity/Book.php becomes // api/src/ApiResource/Book.php with Symfony or app/ApiResource/Book.php with Laravel.

@vinceAmstoutz vinceAmstoutz force-pushed the docs-pagination-support-laravel branch from 7da3774 to f8fc604 Compare November 27, 2024 13:21
@vinceAmstoutz vinceAmstoutz merged commit 1d00f30 into api-platform:4.0 Dec 9, 2024
1 check passed
@vinceAmstoutz vinceAmstoutz deleted the docs-pagination-support-laravel branch December 9, 2024 14:18
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

Successfully merging this pull request may close these issues.

1 participant