Download the PHP package ambersive/yamlseeder without Composer
On this page you can find all versions of the php package ambersive/yamlseeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ambersive/yamlseeder
More information about ambersive/yamlseeder
Files in ambersive/yamlseeder
Package yamlseeder
Short Description This package allows you to seed your tables with help of yaml files.
License MIT
Informations about the package yamlseeder
YAML SEEDER
Changes between versions will be tracked in the CHANGELOG.
Installation
Optional: Publish the config
Usage
All the seeds will be executed if you run the classic
Create yaml seed file
Create a yml file in database/seeds-yaml. Please use the .yml file extension.
The structure of the the seed looks like:
model: The model will define which data should be seeded.
primaryKey: Default it is 'id' if not defined.
exlude: Default is false. This defines if the file will be included within the normal db:seed process.
fieldsOnCreate: List of field name which defines which files will be need on a create statement. Make your fields nullable if you want to reduce the list.
data: Array of the actual data. Follow the structure of you model.
Command
This command will create in the database/seeds-yaml folder a demo.yml file.
Feedback
Please feel free to give us feedback or any improvement suggestions.
Security Vulnerabilities
If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via [email protected]. All security vulnerabilities will be promptly addressed.
License
This package is open-sourced software licensed under the MIT license.
All versions of yamlseeder with dependencies
phlak/semver Version ^3.2
symfony/yaml Version ^3.4|^4.0|^5.0