PHP code example of salmanzafar / laravel-db-backup

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

    

salmanzafar / laravel-db-backup example snippets




/**
 * Db Backup configuration file to setup disk and folder name for db backup
 */

return [
    'disk' => 'public', // disk e.g local, public, s3 etc
    'visibility' => 'public', // leave it null for private
    'folder' => 'dbbackup' // folder name for backup
];
 7.3

php artisan vendor:publish --provider="Salman\DbBackup\DbBackupServiceProvider"

php artisan db:backup
db dump