Laravel Inverse Seed Generator
In order to support L55, the IseedCommand now has a handle() method for Laravel v5.5 and a fire() method for older Laravel versions.
https://github.com/laravel/framework/blob/master/CHANGELOG-5.5.md laravel/framework#19827 laravel/framework#20024
By using --orderby
and --direction
parameters you can now set the column which will be used for results ordering, and the direction to order by (ASC/DESC). This works great when you want to limit the number of exported database entries using the --max
parameter.
By using --noindex
the seed can be generated as a non-indexed array. The use case for this feature is when you need to merge two seed files.
Fixed a problem with query builder returning an object instead of an array.
Added prerun and postrun command options; Formatted code according to PSR-2 standard; Updated documentation.
Refactored code so that the package works with Laravel 5. If you want to use iSeed with Laravel 4, please use iSeed version 1.1.
New features: Confirm method that prevents existing seed files from being overwritten. Specify maximum numer of rows to be exported. Multiple tables export.
Fixed a number of smaller issues.