Releases: orangehill/iseed
Flexible Table Selection and SQL Filtering Support
v3.1.0 Release Notes
This release introduces significant improvements to the iSeed package functionality:
New Features
Optional Table Arguments
The tables
argument is now optional in the iSeed command. When no specific tables are provided, the command will automatically generate seeders for all tables in your database.
php artisan iseed # Seeds all tables
php artisan iseed my_table # Seeds specific table
SQL WHERE Clause Support
Filter the rows to be included in the seed file using the --where
option:
# Filter by email domain
php artisan iseed users --where="email LIKE '%@example.com'"
# Filter by date and status
php artisan iseed users --where="active = 1 AND created_at > '2024-01-01'"
# Complex filtering with additional options
php artisan iseed users --where="role = 'admin'" --max=10 --orderby=created_at --direction=desc
Existing Features
You can still use all existing features including:
- Specific table seeding with CSV notation:
php artisan iseed my_table,another_table
- Class name customization with prefixes/suffixes
- Force overwrite option
- Autoload control
- Clean database seeder option
Requirements
- Laravel 5.4 and above (auto-discovery supported)
- PHP 7.0 and above
Installation
composer require orangehill/iseed
Add Laravel 11 support
Merge pull request #234 from atmonshi/laravel-11 add Laravel 11 support
Add Laravel 10 support
Merge pull request #223 from zayedadel/master Added support for laravel 10
Add Laravel 9 support
Adds Laravel 9 support.
Add PHP8 support
Adds PHP8 support.
Laravel 8 Native Support
This release aims to add a native laravel 8 support. To do this the following changes were made:
- Add namespace Database\Seeders; namespace to the seed stub.
- Change config to point to the default database/seeders/ directory over the laravel 7 database/seeds
- Change the Stubs directory to stubs
Since some breaking changes were introduced, the version is bumped to a major release.
Added support for Laravel 8
Added support for Laravel 8
Added Laravel 7.0 support
Added Laravel 7.0 support
Added Laravel 6.0 support, updated the documentation
- Added Laravel 6.0 support
- Updated the documentation on how to use the
orderby
anddirection
parameters
Added chunksize option
Added chunksize optional parameter which defines the size of data chunks for each insert query. Helps with issue described in #4 (comment)