Download the PHP package marshmallow/metadata without Composer
On this page you can find all versions of the php package marshmallow/metadata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/metadata
More information about marshmallow/metadata
Files in marshmallow/metadata
Package metadata
Short Description A package to simply add metadata to models
License MIT
Homepage https://github.com/marshmallow-packages/metadata
Informations about the package metadata
This is my package metadata
Add metadata to any model with a simple cast
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
Add the following trait to your model
Add add cast for your required field.
After which you can get & set your field using normal methods;
The data from the field will be decoded & encoded to a json format.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Marshmallow
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of metadata with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^9.0|^10.0|^11.0