Glow Flysystem Adapter - Easy work with Glow CDN API.
- Vendor: bavix
- Package: Glow Flysystem
- Version:
- Laravel Version:
7.x
- PHP Version: 7.3+
- Composer:
composer require bavix/glow-flysystem
Add disk in config config/filesystems.php
.
'disks' => [
'glow' => [
'driver' => 'glow',
'bucket' => env('GLOW_BUCKET'),
'url' => env('GLOW_URL'),
'endpoint' => env('GLOW_ENDPOINT'),
'token' => env('GLOW_TOKEN'),
'visibility' => 'public',
],
],
Usage example.
use Illuminate\Support\Facades\Storage;
$glow = Storage::disk('glow');
$glow->put('glow.txt', 'Hello, flysystem!');
var_dump($glow->url('glow.txt')); // URL for download file
var_dump($glow->delete('glow.txt'));
Supported by