atannex / retrive
Data retrieval layer for Laravel Eloquent models: resource definitions, a fluent retriever, magic finders (getPostBySlug, getPostsByCategory…), request-driven filters, sorts and includes, visibility rules, hierarchy-aware relation filters, search, neighbours, related records and self-invalidating ca
Requires
- php: ^8.3
- illuminate/cache: ^11.0|^12.0
- illuminate/console: ^11.0|^12.0
- illuminate/database: ^11.0|^12.0
- illuminate/events: ^11.0|^12.0
- illuminate/http: ^11.0|^12.0
- illuminate/pagination: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-30 11:14:49 UTC
README
A single place for a Laravel app to fetch its records. For each model you describe once what can be filtered, sorted and included and who may see what, and then fetch records with simple calls such as getPostBySlug or getPostsByCategory. It handles filters from the web address, search, next and previous records, related records and caching that clears itself when data changes.
Install
composer require atannex/retrive