PHP code example of daycode / artisan-backup

1. Go to this page and download the library: Download daycode/artisan-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/ */

    

daycode / artisan-backup example snippets


'providers' => [
    /*
    * Package Service Providers...
    */
    \DayCod\ArtisanBackup\ArtisanBackupServiceProvider::class,
],

├── ...
├── database                    
|    ├── ...          
|    ├── backup          
|    |   ├── mysql
|    |   |   ├── sql
|    |   |   ├── json 
|    |   └── ...           
|    └── ...                
└── ...
bash
composer dump-autoload && php artisan optimize:clear
bash
php artisan backup:mysql -t sql
bash
php artisan backup:mysql --type=sql
bash
php artisan backup:mysql -t json
bash
php artisan backup:mysql --type=json