ahmedsaoud31 / laradb
Backup and Restore data from active database and skip deleted rows in restore
v1.0.1
2026-07-28 05:56 UTC
Requires
- php: ^8.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.0|^11.0
README
Laradb is a package to Backup and Restore data from active database and skip deleted rows in restore.
Use this package when you change database schema and you want to restore the old data to your actual database.
First backup your current database using this package and after finishing your editing just restore the database.
Some times we need to run migrate:fresh command, in this case this package will help you to restore the previous database records.
Installation
composer require ahmedsaoud31/laradb
The package will automatically register its service provider.
Usage
Backup database
Run the Laradb console command:
php artisan laradb:backup
Restore database
Run the Laradb console command:
php artisan laradb:restore
License
The MIT License (MIT). Please see License for more information.