PHP code example of alexgh12 / backup-in-git
1. Go to this page and download the library: Download alexgh12/backup-in-git library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alexgh12 / backup-in-git example snippets
'providers' => ServiceProvider::defaultProviders()->merge([
/* ... */
AlexGh12\BackupInGit\BackupInGitServiceProvider::class,
/* ... */
])->toArray(),
protected function schedule(Schedule $schedule): void
{
// Recomendado si tienes telescope
$schedule->command('telescope:prune --hours=48')->daily();
// Respando de Base de datos
$schedule->command('BackupInGit:db')->daily();
}
bash
php artisan BackupInGit:db