jpswade/laravel-database-tools
Laravel Database Tools adds handy Artisan commands to create databases, dump/restore from SQL files or Spatie backups, update charset/collation, optimize MySQL tables, and add SQLite MySQL-compat functions for tests. Ideal for dev workflows.
db:dump + db:import) without manual intervention, critical for CI/CD pipelines or feature branch isolation.laravel-backup by adding restore functionality (db:getFromBackup), reducing dependency on third-party tools for backup management.OPTIMIZE TABLE, charset fixes), saving engineering time. Low-risk adoption due to minimal dependencies and Laravel-native design.Adopt if:
laravel-backup but lack a straightforward way to restore backups programmatically.mysqldump CLI calls, ad-hoc imports).Look elsewhere if:
"This package cuts database management time in half for our Laravel devs by automating repetitive tasks like backups, resets, and SQLite/MySQL parity. For example, a developer can now reset their local database with a single command (php artisan db:reset) instead of manually running mysqldump and mysql CLI tools. This reduces onboarding friction and speeds up testing cycles—critical for our [feature X] roadmap. The cost? Minimal: a lightweight dev-only dependency with no production impact. ROI comes from developer productivity gains, not infrastructure changes."
Key Metrics to Track:
*"This fills gaps in Laravel’s native tooling for database operations. Here’s how we’ll use it:
mysqldump commands with php artisan db:dump and db:import for consistent environments.DATE_FORMAT) without hacking queries.db:dump + db:import (e.g., before/after feature branch tests).db:getFromBackup (e.g., for disaster recovery drills).OPTIMIZE TABLE via Artisan to clean up staging DBs without SSH access.Why not build this ourselves?
dbtools.php to match our filesystem/database setups.Trade-offs:
Proposal: Let’s pilot this in [Project Y]’s staging environment for database resets. If it reduces incidents by 30%, we’ll roll it out to all Laravel teams."*
How can I help you explore Laravel packages today?