niburkin / serializer
Serializer for Laravel
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/niburkin/serializer
Requires
- php: >=7.2
- barryvdh/laravel-cors: ^0.11.3
- illuminate/support: 5.5.x|5.6.x|5.7.x|5.8.x
This package is auto-updated.
Last update: 2020-11-21 14:45:29 UTC
README
Installation
Require the niburkin/serializer in your composer.json and update your dependencies:
composer require niburkin/serializer
For laravel >=5.5 that's all. This package supports Laravel new Package Discovery.
If you are using Laravel < 5.5, you also need to add Serializer\Providers\SerializerServiceProvider to your config/app.php providers array:
NiBurkin\Serializer\Providers\SerializerServiceProvider::class,
Configuration
all objects must be entered into the list object in the config file (config/serializer.php).
Copy this file to your own config directory to modify the values.
You can publish the config using this command:
php artisan vendor:publish --provider="NiBurkin\Serializer\Providers\SerializerServiceProvider"
Using
How to create serializer from command line:
php artisan make:serializer ClassName
Options:
--oor--object- auto create serializer for you class in project app.
License
Released under the MIT License, see LICENSE.