superman2014 / json-api by liujingyu

Given neomerx/json-api package, add some settings for laravel or lumen
2,305
3
2
Package Data
Maintainer Username: liujingyu
Maintainer Contact: jingyu525@gmail.com (liujingyu)
Package Create Date: 2017-06-26
Package Last Update: 2017-07-03
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:04:54
Package Statistics
Total Downloads: 2,305
Monthly Downloads: 103
Daily Downloads: 9
Total Stars: 3
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

Manual

Configuration

Install package composer require "superman2014/json-api:1.0.x@dev"

Laravel

Open config/app.php and register the required service provider above your application providers.

'providers' => [
    Superman2014\JsonApi\EncoderServiceProvider::class,
]

If you'd like to make configuration changes in the configuration file you can pubish it with the following Aritsan command:

php artisan vendor:publish --provider="Superman2014\JsonApi\EncoderServiceProvider"

Lumen

Open bootstrap/app.php and register the required service provider.

$app->register(Superman2014\JsonApi\EncoderServiceProvider::class);

More

neomerx/json-api