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.

{info} All fetching examples in this documentation assume the use of Axios but you can use whatever tool you like.

Supported Functions

Querying

Endpoints

Aggregates

Metadata