File "BackupDestinationFactory.php"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestinationFactory.php
File size: 364 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Spatie\Backup\BackupDestination;
use Illuminate\Support\Collection;
class BackupDestinationFactory
{
public static function createFromArray(array $config): Collection
{
return collect($config['destination']['disks'])
->map(fn ($filesystemName) => BackupDestination::create($filesystemName, $config['name']));
}
}