Package Data | |
---|---|
Maintainer Username: | diego0417 |
Package Create Date: | 2016-10-06 |
Package Last Update: | 2019-03-04 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 15:04:01 |
Package Statistics | |
---|---|
Total Downloads: | 223 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 2 |
Total Forks: | 5 |
Total Open Issues: | 0 |
Seeding as it is currently done in Laravel is intended only for dev builds, but what if you're iteratively creating your database and want to constantly flush it and repopulate it during development? What if you want to seed a production database with different data from what you use in development? What if you want to seed a table you've added to a database that is currently in production with new data?
php artisan seed
will only run seeds that haven't already been run.php artisan db:seed
or
php artisan migrate:refresh --seed
php artisan seed:run --file=seed_2015_05_27_030017_UserSeeder
When you install SmartSeeder, various artisan commands are made available to you which use the same methodology you're used to using with Migrations.
"gizburdt/gardener": "5.2.*"
to your composer.json and run an update to bring it in (or run composer require jlapp/smartseeder).Jlapp\SmartSeeder\SmartSeederServiceProvider::class
to your providers array in app/config/app.php
php artisan vendor:publish
to push config files to your config folder if you want to override the name of the seeds folder or the name of the table where seeds are stored