PHP code example of phpguus / laravel-raid-storage-driver

1. Go to this page and download the library: Download phpguus/laravel-raid-storage-driver 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/ */

    

phpguus / laravel-raid-storage-driver example snippets


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

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

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