����JFIF��x�x����'
Server IP : 78.140.185.180 / Your IP : 18.222.227.24 Web Server : LiteSpeed System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : builderbox ( 1072) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/builderbox/public_html/common/Files/Providers/ |
Upload File : |
<?php namespace Common\Files\Providers; use Aws\S3\S3Client; use Illuminate\Support\Arr; use League\Flysystem\AwsS3v3\AwsS3Adapter; use Storage; use League\Flysystem\Filesystem; use Illuminate\Support\ServiceProvider; class DigitalOceanServiceProvider extends ServiceProvider { /** * Perform post-registration booting of services. * * @return void */ public function boot() { Storage::extend('digitalocean', function ($app, $config) { $region = $config['region']; $client = new S3Client([ 'credentials' => [ 'key' => $config['key'], 'secret' => $config['secret'] ], 'region' => $region, 'version' => 'latest', 'endpoint' => "https://$region.digitaloceanspaces.com", ]); $root = isset($config['root']) ? $config['root'] : null; $options = isset($config['options']) ? $config['options'] : []; $adapter = new AwsS3Adapter($client, $config['bucket'], $root, $options); $flysystemConfig = Arr::only($config, ['visibility', 'disable_asserts', 'url']); return new Filesystem($adapter, count($flysystemConfig) > 0 ? $flysystemConfig : null); }); } /** * Register bindings in the container. * * @return void */ public function register() { // } }