PHP code example of zing / laravel-flysystem-obs
1. Go to this page and download the library: Download zing/laravel-flysystem-obs 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/ */
zing / laravel-flysystem-obs example snippets
return [
// ...
'disks' => [
// ...
'obs' => [
'driver' => 'obs',
'root' => '',
'key' => env('OBS_KEY'),
'secret' => env('OBS_SECRET'),
'bucket' => env('OBS_BUCKET'),
'endpoint' => env('OBS_ENDPOINT'),
'is_cname' => env('OBS_IS_CNAME', false),
'security_token' => env('OBS_SECURITY_TOKEN'),
],
]
];