snow-digital/laravel-json-api
Composer 安装命令:
composer require snow-digital/laravel-json-api
包简介
README 文档
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
统计信息
- 总下载量: 1.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-27