Backup single or multiple database tables with ease. Use the BackupTables::generateBackup($tableToBackup) Facade anywhere in your application and it will generate $tableToBackup_backup_2024_08_22_17_40_01 table in the database with all the data and structure. Note that the datetime 2024_08_22_17_40_01 will be varied based on your datetime.
Features
- You can use an array to backup more than one table
- Or add Classes as parameters, It will backup their tables
- You can customize the $dataTime format to whatever you want
- Supports Laravel versions: 11, 10, 9, 8, 7, and 6
- Supports PHP versions: 8.2, 8.1, 8.0, and 7.4
- Supports SQL databases: SQLite, MySQL/MariaDB, PostgreSQL, and SQL Server
- Fully automated tested with PHPUnit
- Full GitHub Action CI pipeline to format code and test against all Laravel and PHP versions
