orangehill/iseed
Generate a new Laravel database seed file based on data from the existing database table.
v3.8.1
10M downloads/mo
#1567 most downloaded on Packagist
orangehill/iseed
What this package is like to depend on
Last release 2 months ago
24 Jun 2026
Release timing varies
gaps range from 2 weeks to 1.1 years
Rarely documented
notes for 8 of 34 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
34 releases · first in 2013
12 releases in the last 12 months
see the full history below
Release timeline
34 releases · Sep 2013 to Jun 2026Releases
latest 34-
v3.8.124 Jun 2026Nothing published for this version
-
v3.8.023 Feb 2026Nothing published for this version
-
v3.7.208 Feb 2026Release notes
Open source →Bug Fix
- Use explicit nullable types (
?Filesystem,?Composer) inIseedconstructor to resolve PHP 8.4 deprecation warning (#231)
Thanks to @dragonfly4 for reporting!
- Use explicit nullable types (
-
v3.7.128 Jan 2026Release notes
Open source →Documentation
- Remove broken Travis CI badge (travis-ci.org shut down)
- Remove deprecated Google Analytics badge
- Update badges to
.svgformat for live updates - Add License badge
- Update README examples to match actual generated output:
- Add
namespace Database\Seeders - Add
use Illuminate\Database\Seeder - Change
truncate()todelete()to match actual code
- Add
- Update all path references from
database/seedstodatabase/seeders(Laravel 8+)
-
v3.7.028 Jan 2026Release notes
Open source →Features
- Add
--reset-sequencesoption for PostgreSQL (#160): Resets PostgreSQL sequences after seeding to prevent "duplicate key value violates unique constraint" errors when inserting new records.
php artisan iseed users --reset-sequences
Bug Fixes
- Fix whitespace trimming in multiline strings (#191): The
prettifyArray()function now preserves whitespace inside multiline string values, fixing issues with YAML, JSON, or other data where indentation is significant.
Contributors
Thanks to @Magentron for reporting the whitespace issue and @cjlaborde for reporting the PostgreSQL sequence issue.
- Add
-
v3.6.028 Jan 2026Release notes
Open source →New Feature
--skipoption: Skip a specified number of rows before exporting. Useful for paginating through large datasets.
Usage
# Export first 1000 rows php artisan iseed users --max=1000 --orderby=id # Export next 1000 rows (skip first 1000) php artisan iseed users --max=1000 --skip=1000 --orderby=id # Export rows 2001-3000 php artisan iseed users --max=1000 --skip=2000 --orderby=id
Bug Fix
- Fixed default direction to
ASCwhen using--orderbywithout explicit--direction
Thanks
Thanks to @whoisryosuke for PR #143.
-
v3.5.028 Jan 2026Release notes
Open source →New Feature
--skip-fk-checksoption: Disable foreign key checks during seeding. Useful for tables with FK constraints that would fail on delete/insert operations.
Usage
php artisan iseed users --skip-fk-checks
This generates:
\DB::statement('SET FOREIGN_KEY_CHECKS=0;'); \DB::table('users')->delete(); \DB::table('users')->insert(...); \DB::statement('SET FOREIGN_KEY_CHECKS=1;');
Note: This generates MySQL-specific statements.
Thanks
-
v3.4.028 Jan 2026Release notes
Open source →Fix
- Database connection in seeders: When using
--databasewith a non-default connection, the generated seeder now properly usesDB::connection('name')->table()instead of justDB::table(). This prevents accidental data operations on the wrong database.
Example
# Default database - generates: \DB::table('users') php artisan iseed users # Non-default database - generates: \DB::connection('mysql2')->table('users') php artisan iseed users --database=mysql2
Thanks
- Database connection in seeders: When using
-
v3.3.028 Jan 2026Release notes
Open source →New Feature
- Custom stub templates: Specify a custom stub path via
config/iseed.phpto customize the generated seed file format.
Usage
Create
config/iseed.phpin your Laravel application:<?php return [ 'stub_path' => resource_path('stubs'), ];
Then create your custom stub at
resources/stubs/seed.stub.Thanks
Thanks to @bahri-hirfanoglu for PR #222.
- Custom stub templates: Specify a custom stub path via
-
v3.2.028 Jan 2026Release notes
Open source →New Feature
--noregisteroption: Generate seed files without adding them toDatabaseSeeder.php. Useful for creating backup seeders or manually managing which seeders are registered.
Usage
php artisan iseed users --noregister
Thanks
Thanks to @VukTodorovic for the original PR #230 (renamed from
--noseedto--noregisterfor clearer semantics). -
v3.1.328 Jan 2026Nothing published for this version
-
v3.1.228 Jan 2026Nothing published for this version
-
v3.1.104 Mar 2025Nothing published for this version
-
v3.1.013 Feb 2025Nothing published for this version
-
v3.0.427 Mar 2024Nothing published for this version
-
v3.0.327 Mar 2023Nothing published for this version
-
v3.0.211 Feb 2022Nothing published for this version
-
v3.0.114 Jan 2021Nothing published for this version
-
v2.6.410 Sep 2020Nothing published for this version
-
v2.6.306 Mar 2020Nothing published for this version
-
v2.6.209 Sep 2019Nothing published for this version
-
v2.6.107 Dec 2018Nothing published for this version
-
v2.5.105 Oct 2017Nothing published for this version
-
v2.3.125 Jan 2017Nothing published for this version
-
v3.014 Dec 2020Nothing published for this version
-
v2.601 Oct 2018Nothing published for this version
-
v2.513 Jul 2017Nothing published for this version
-
v2.409 May 2017Nothing published for this version
-
v2.322 Dec 2016Nothing published for this version
-
v2.214 Sep 2016Nothing published for this version
-
v2.122 Jan 2016Nothing published for this version
-
v2.017 Mar 2015Nothing published for this version
-
v1.112 Feb 2015Nothing published for this version
-
v1.024 Sep 2013Nothing published for this version