Download the PHP package alasit/gardener without Composer
On this page you can find all versions of the php package alasit/gardener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package gardener
Smart seeder for Laravel
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?
Features
- Allows you to seed databases in different environments with different values.
- Allows you to "version" seeds the same way that Laravel currently handles migrations. Running will only run seeds that haven't already been run.
- Prompts you if your database is in production.
- Allows you to run multiple seeds of the same model/table
-
Overrides Laravel's seeding commands. SmartSeeder will fire when you run
or
- You can run a single seed file with the --file option.
Use
When you install SmartSeeder, various artisan commands are made available to you which use the same methodology you're used to using with Migrations.
seed:run | Runs all the seeds in the smartSeeds directory that haven't been run yet. |
seed:make | Makes a new seed class in the environment you specify. |
seed:rollback | Rollback doesn't undo seeding (which would be impossible with an auto-incrementing primary key). It just allows you to re-run the last batch of seeds. |
seed:reset | Resets all the seeds. |
seed:refresh | Resets and re-runs all seeds. |
seed:install | You don't have to use this... it will be run automatically when you call "seed" |
Installation
- Add require: to your composer.json and run an update to bring it in (or run composer require jlapp/smartseeder).
- Add to your providers array in
- Run 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
All versions of gardener with dependencies
illuminate/support Version 5.2.*
illuminate/console Version 5.2.*
illuminate/database Version 5.2.*
illuminate/filesystem Version 5.2.*