π Custom Fresh v2.1.0 is here!
Laravel database resets are easy until your project has tables you need to keep.
Reference data, imported records, configuration tables, and other data not managed by migrations can be lost when using migrate:fresh.
Custom Fresh gives you more control over what gets reset and what stays.
Keep specific tables during database resets:
php artisan db:fresh --keep=users,settings
Keep raw data without relying on migrations:
php artisan db:fresh --keep-raw=locations
Reset the data without rebuilding the schema:
php artisan db:fresh --freeze-schema
Whatβs new in v2.1.0
- βοΈ Freeze Schema β reset data without rebuilding the schema.
- πΎ Keep Raw Data β preserve tables without migrations.
- βοΈ Presets & Config β customize reset behavior for your workflow.
- π Related Tables β handle related data more reliably.
- π± Seed Fresh β reset and seed your database in one step.
- β οΈ Safer Resets β improved foreign-key warnings and safeguards.
- π§ͺ Better Testing & CI β expanded test coverage and GitHub Actions.
A Laravel package to make database resets more flexible, predictable, and safe.
π Check out Custom Fresh:

Top comments (0)