stefanius/laravel-fixtures
Composer 安装命令:
composer create-project stefanius/laravel-fixtures
包简介
Load YAML fixtures in your Laravel project
README 文档
README
The Yaml fixture seeder for the Laravel Framework.
Why this package?
The Seeder classes are very powerfull and to be honest: This package has a lot less options. Imagine that you have lists of data you want to seed. The problem only is that the Seeder classes needs to be programmed. With lots and lots of array's, in my opinion it will end up in large PHP files and hardly to read and maintain.
This package provides a Yaml structure, based per-table but you can make relationships between them. See therefore the examples.
Installation
To install this package on your Laravel project, you only have to add it to your Composer file. There is no need (and also impossible) to add a Facade or ServiceProvider.
shell> composer require stefanius/laravel-fixtures
Example data
When the documentation does not provide the information you needed or hoped for, you may want to check the example data. This data is also used to test the package and therefore it will give a good impression of the package. You can find the data: https://github.com/stefanius/laravel-fixtures/tree/master/testdata/database/fixtures
In progress
The package is almost stable but the readme.md file is still in progress. Keep in touch to see if there are any updates!
Badges
Some badges are handy to place them on top. But, in a time of 'badge-festing' I want to join the party, and some badges are a bit obscure.
统计信息
- 总下载量: 3.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-30