webparking/laravel-db-rebuild
A Laravel package that adds a db:rebuild Artisan command to quickly reset your database by dropping all tables, rerunning migrations, and optionally seeding. Ideal for local development and testing, it makes repeatable database refreshes fast, consistent, and simple without manual SQL.
db:rebuild) that drops tables, re-runs migrations, and optionally seeds. It is a convenience wrapper over mechanics Laravel already ships (migrate:fresh, db:seed), so it sits in the "tooling polish" bucket, not the "product capability" bucket.php artisan migrate:fresh --seed), (b) add this dependency, or (c) vendor ~30–60 lines into app/Console/Commands so we own the guardrails. Given the 2020-09-10 last release, 44 stars, and a 0.22 score, (c) or (a) is almost always the better call — this is a copy candidate, not a dependency candidate.Consider it when:
Look elsewhere (or just use core) when:
migrate:fresh --seed already does this, is maintained by the framework team, and gains new capabilities (schema dumps, parallel-test isolation, view handling) for free. Adding a stale wrapper here is strictly negative value.illuminate/support constraint predates your pinned Laravel — in which case Composer will refuse to install it, and the evaluation ends at the solver error.Practical gate: run a throwaway composer require against the real lockfile first. If it resolves cleanly on the current stack, the copy-the-command option is still preferable; if it does not resolve, the decision is made for you and costs five minutes.
Executives: This is a small developer-productivity utility, not a product feature. It saves engineers a few keystrokes when resetting a local or CI database — effort measured in minutes per developer per day, with zero customer-facing impact and zero revenue exposure. The package is unmaintained (last release 2020), so my recommendation is not to take it on as a dependency. The equivalent behaviour is built into modern Laravel, and where it isn't, the command is small enough to copy into our own codebase under its MIT licence so we own the safety checks. Either way, we spend nothing and carry no supply-chain risk.
Engineering: The capability is "drop tables, re-run migrations, optionally seed" behind one Artisan command. On Laravel 8+ this is migrate:fresh --seed and we should use that. If we want a friendlier, org-specific wrapper — a db:rebuild that runs our named seeder and refuses to execute outside local/CI — we write it ourselves in under a day, with the environment guard, confirmation prompt, and logging that a 2020 community command will not have. If any team is already using it, the migration path is a two-line swap plus deleting the Composer entry; we lose nothing.
Ask: Approve the "use core / vendor the command" path and a half-day of engineering time to add the wrapper with guardrails. Decline adoption of the package itself as an external dependency, and note it in our dependency register as evaluated-and-rejected so the same question doesn't resurface next quarter.
How can I help you explore Laravel packages today?