This package for backup your database with artisan command line
You install package from packagist.com with composer
composer require ismat/backup
After installation publish backups folder to storage and config to config path with this command
php artisan vendor:publish --provider="Modules\Backup\Providers\BackupServiceProvider"
Then create folder in storage path as backups like this
../storage/backups
For backup all tables in database run this command
php artisan db:backup
Options of command
--table -t [--table=test or -t test] | Backup only one table
--data -d [--data=1 or -d 1] | Backup only data not table structure
This project is licensed under the MIT License - see the LICENSE.md file for details