spatie/laravel-db-snapshots
Artisan commands to quickly create, load, list, and clean up database snapshots in Laravel. Dump your DB, restore any snapshot (or the latest), and keep only recent dumps. Supports MySQL, PostgreSQL, and SQLite.
mysqldump/pg_dump for large-scale needs).*"This package lets our engineering team save and restore database states in seconds—like a ‘Ctrl+Z’ for our production data. For example:
mysqldump scripts or third-party tools for basic snapshot needs.*"Problem: Managing database states across dev/staging/prod is a pain—manual dumps, inconsistent environments, and no easy way to revert changes. Solution: This package gives us Artisan commands to:
php artisan snapshot:create (supports partial tables, compression, and multi-connection).php artisan snapshot:load (with streaming for large DBs, optional table drops).s3 disk with encryption for sensitive data).
Ask: Let’s pilot this for our next feature release—it’ll save us hours in debugging and rollbacks."*How can I help you explore Laravel packages today?