LaravelPackages.net
Acme Inc.
Toggle sidebar
phpguus/laravel-raid-storage-driver

A Laravel Storage driver that encapsulates the Flysystem RAID driver.

5
2
1.0.0
About phpguus/laravel-raid-storage-driver

phpguus/laravel-raid-storage-driver is a Laravel package for a laravel storage driver that encapsulates the flysystem raid driver.. It currently has 2 GitHub stars and 5 downloads on Packagist (latest version 1.0.0). Install it with composer require phpguus/laravel-raid-storage-driver. Discover more Laravel packages by phpguus or browse all Laravel packages to compare alternatives.

Last updated

Laravel RAID Storage

Latest Version on Github Latest version on Packagist StyleCI Quality Score Total Downloads

laravel-raid-storage-driver provides encapsulation of the flysystem-raid package for Laravel applications.

Installation

Require the package using composer

composer require phpguus/laravel-raid-storage-driver

Usage

In config/filesystems.php, you can now create a disk (in the disks subarray) that has the "raid" driver.

'redundantStorage' => [
    'driver' => 'raid',
    'raidLevel' => 1,
    'disks' => [
         'diskOne', 'diskTwo', 'diskThree'
    ];
];

This allows to use the disk as simple as in

Storage::disk('redundantStorage')->write('myfile.txt', 'Something!');

... or in case you are handling uploaded files:

$file->store('', 'redundantStorage');

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Star History Chart