Skip to content

Releases: orangehill/iseed

Flexible Table Selection and SQL Filtering Support

13 Feb 11:26
Compare
Choose a tag to compare

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

27 Mar 08:02
403ea73
Compare
Choose a tag to compare
Merge pull request #234 from atmonshi/laravel-11

add Laravel 11 support

Add Laravel 10 support

27 Mar 06:16
92b98c8
Compare
Choose a tag to compare
Merge pull request #223 from zayedadel/master

Added support for laravel 10

Add Laravel 9 support

13 Feb 20:57
11f4355
Compare
Choose a tag to compare

Adds Laravel 9 support.

Add PHP8 support

14 Jan 15:35
874f77a
Compare
Choose a tag to compare

Adds PHP8 support.

Laravel 8 Native Support

14 Dec 11:36
a6c54d2
Compare
Choose a tag to compare

This release aims to add a native laravel 8 support. To do this the following changes were made:

  1. Add namespace Database\Seeders; namespace to the seed stub.
  2. Change config to point to the default database/seeders/ directory over the laravel 7 database/seeds
  3. 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

10 Sep 06:26
03c73d3
Compare
Choose a tag to compare

Added support for Laravel 8

Added Laravel 7.0 support

06 Mar 08:31
Compare
Choose a tag to compare

Added Laravel 7.0 support

Added Laravel 6.0 support, updated the documentation

09 Sep 12:18
fe8fbf5
Compare
Choose a tag to compare
  • Added Laravel 6.0 support
  • Updated the documentation on how to use the orderby and direction parameters

Added chunksize option

07 Dec 08:09
360ba13
Compare
Choose a tag to compare

Added chunksize optional parameter which defines the size of data chunks for each insert query. Helps with issue described in #4 (comment)