Looking to hire Laravel developers? Try LaraJobs

laravel-json-api maintained by snow-digital

Last update
2026/05/18 13:38 (dev-main)
License
Downloads
1 133

Comments
comments powered by Disqus

Laravel JSON:API

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