snow-digital/laravel-json-api

Installs: 650

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/snow-digital/laravel-json-api

v0.0.2 2024-08-28 17:57 UTC

This package is auto-updated.

Last update: 2025-12-22 13:15:35 UTC


README

This package allows to quickly prototype a JSON:API API, automatizing most of it from Eloquent or QueryBuilder.

It's based on top of Spatie Query Builder and JSON Api Paginate, allowing to easily switch when you need more flexibility without having to rework everything.

Installation

You can install the package via composer:

composer require snow-digital/laravel-json-api

Optionally you can publish the config file with:

php artisan vendor:publish --tag=json-api-config

Usage

If you are using Laravel default structure, you don't need to do anything else. It will detect and register automatically all Eloquent Models as resources.

You can check if the routes are registered correclty using:

php artisan route:list --name=json-api