PHP code example of sukhrobnurali / laravel-db-backup

1. Go to this page and download the library: Download sukhrobnurali/laravel-db-backup 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/ */

    

sukhrobnurali / laravel-db-backup example snippets


protected function schedule(Schedule $schedule)
{
    $schedule->command('backup:run')->daily();
}
bash
php artisan vendor:publish --tag=config --provider="LaravelDbBackup\Providers\DatabaseBackupServiceProvider"
bash
php artisan backup:run