superman2014 / json-api
Given neomerx/json-api package, add some settings for laravel or lumen
Installs: 2 305
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.6.4
- illuminate/support: 5.*
- neomerx/json-api: ~1.0
This package is not auto-updated.
Last update: 2024-11-21 09:01:22 UTC
README
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);