public static function runBackups($disk = null)
    {
        try {
            $backupJob = BackupJobFactory::createFromArray(config('laravel-backup'));

            if ( ! is_null($disk)) {
                $backupJob->onlyBackupTo($disk);
            }

            $backupJob->run();
        }
        catch (\Exception $ex) {
            return false;
        }

        return true;
    }
public static function runBackups($disk = null)
    {
        try {
            $backupJob = BackupJobFactory::createFromArray(config('laravel-backup'));

            if ( ! is_null($disk)) {
                $backupJob->onlyBackupTo($disk);
            }

            $backupJob->run();
        }
        catch (\Exception $ex) {
            return false;
        }

        return true;
    }
public static function runBackups ( $ disk = null ) { try { $ backupJob = BackupJobFactory :: createFromArray ( config ( 'laravel-backup' ) ) ; if ( ! is_null ( $ disk ) ) { $ backupJob -> onlyBackupTo ( $ disk ) ; } $ backupJob -> run ( ) ; } catch ( \ Exception $ ex ) { return false ; } return true ; }
Run the backups.

@param  string|null  $disk

@return bool
Run the backups .