joskolenberg/laravel-jory
| Install | |
|---|---|
composer require joskolenberg/laravel-jory |
|
| Latest Version: | v3.4.1 |
| License: | MIT |
| Last Updated: | Jun 29, 2026 |
| Links: | GitHub · Packagist |
Laravel-Jory: Flexible Eloquent API Resources
Concept Overview
Laravel Jory creates a dynamic API for your Laravel application to serve the data from your Eloquent models. JoryResources are comparable to Laravel's built-in Resource classes but you only write (or generate) a JoryResource once for each model. Next, your data can be queried in a flexible way by passing a Jory Query to the Jory Endpoints.
Jory is designed to be simple enough to master within minutes but flexible enough to fit 95% of your data-fetching use-cases. It brings Eloquent Query Builder's most-used features directly to your frontend.
Supported Functions
Querying
- Selecting fields (database fields & custom attributes)
- Filtering (including nested
andandorclauses and custom filters) - Sorting (including custom sorts)
- Relations
- Offset & Limit
Endpoints
- Fetch a single record (like Laravel's
first()) - Fetch a single record by id (like Laravel's
find()) - Fetch multiple records (like Laravel's
get()) - Fetch multiple resources at once
Aggregates
Metadata
- Total records (for pagination)
- Query count
For more information take a look at the docs.
Happy coding!
Jos Kolenberg jos@kolenbergsoftwareontwikkeling.nl
Related Packages
A laravel package for resource filtering via request query string
Laravel 4/5/6 package that allows to dynamically filter, sort and eager load rel...
Automatic url parameter mapping to sort, filter, include and select data in an e...
Sortable trait for Laravel's Eloquent models - sort your models using request pa...