Laravel Custom Filesystem for IBM Cloud Object Storage
tavux/laravel-ibm-cos is a Laravel package for laravel custom filesystem for ibm cloud object storage.
It currently has 2 GitHub stars and 3.637 downloads on Packagist (latest version 1.0.2).
Install it with composer require tavux/laravel-ibm-cos.
Discover more Laravel packages by tavux
or browse all Laravel packages to compare alternatives.
Last updated
This is an IBM Cloud Object Storage Custom Filesystem for Laravel.
composer require tavux/laravel-ibm-cos
Add \Tavux\IBMCloudObjectStorage\Laravel\IbmCloudObjectStorageProvider::class to providers in config/app.php
In your .env file, add these lines with your IBM Cloud storage parameters
IBM_COS_ACCESS_KEY_ID=<access_key>
IBM_COS_SECRET_ACCESS_KEY=<secret_access_key>
IBM_COS_DEFAULT_REGION=<region>
IBM_COS_BUCKET=<bucket>
IBM_COS_ENDPOINT=<endpoint>
This is an example of usage :
use Illuminate\Support\Facades\Storage;
Storage::disk('ibm-cos')->allFiles('/');
To know all the available methods, please have a look to the Laravel File Storage documentation.