composer require spatie/laravel-backup
//To publish the config file to config/backup.php
php artisan vendor:publish --provider="SpatieBackupBackupServiceProvider"
//Once installed run
php artisan backup:run
//clean up your backups
php artisan backup:clean
//Determining which backups should be deleted is mention in config/backup.php