PHP code example of basantsd / db-backup-laravel-ci

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

    

basantsd / db-backup-laravel-ci example snippets



protected function schedule(Schedule $schedule)
{
    $schedule->command('backup:daily', ['--token' => config('backup.token')])->daily();
}

$route['backup/daily'] = 'BackupController/daily';
bash

php artisan vendor:publish --provider="Basantsd\\Backup\\Laravel\\BackupServiceProvider" --tag="config"
app/Console/Kernel.php:
routes.php
bash
php artisan backup:daily --token=your-secret-token