Download the PHP package codingphase/seeder without Composer
On this page you can find all versions of the php package codingphase/seeder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download codingphase/seeder
More information about codingphase/seeder
Files in codingphase/seeder
Download codingphase/seeder
More information about codingphase/seeder
Files in codingphase/seeder
Vendor codingphase
Package seeder
Short Description Easy seeding database for Laravel Applications.
License MIT
Package seeder
Short Description Easy seeding database for Laravel Applications.
License MIT
Please rate this library. Is it a good library?
Informations about the package seeder
Seeder
Easy seeding database for Laravel Applications
Installation
Step 1: Install Through Composer
Step 2: Register Service Provider
Add your new provider to the providers
array of config/app.php
:
Publish config
Usage
Extend your seeders with ModelSeeder:
Implement run method:
API:
setAmount(int)
Default amount of seeding resources that are seeded are stored in config. If you want to seed another value of resources, you can.
setHeader(string)
Define header before progress bar in output (default is model namespace)
setCompact(bool)
Default true. Define style of Progress Bar.
useData(array)
Set data that will be used to fill resources. It overrides model factory data.
- first user will have name
test
and email[email protected]
- 25th user will have name
example
and email[email protected]
Practical Examples
All versions of seeder with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.9
The package codingphase/seeder contains the following files
Loading the files please wait ....