fixed issue in backblaze connection test

This commit is contained in:
Čarodej
2022-04-21 08:28:40 +02:00
parent 5b130d01af
commit ca76463fab
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<?php <?php
return [ return [
'version' => '2.0.18', 'version' => '2.0.18.1',
'is_demo' => env('APP_DEMO', false), 'is_demo' => env('APP_DEMO', false),
@@ -1,4 +1,5 @@
<?php <?php
namespace Domain\Settings\Actions; namespace Domain\Settings\Actions;
use Storage; use Storage;
@@ -14,12 +15,13 @@ class TestS3ConnectionAction
// Set temporary s3 connection // Set temporary s3 connection
config([ config([
'filesystems.disks.s3' => [ 'filesystems.disks.s3' => [
'driver' => 's3', 'driver' => 's3',
'key' => $credentials->key, 'key' => $credentials->key,
'secret' => $credentials->secret, 'secret' => $credentials->secret,
'region' => $credentials->region, 'region' => $credentials->region,
'bucket' => $credentials->bucket, 'bucket' => $credentials->bucket,
'endpoint' => $credentials->endpoint, 'endpoint' => $credentials->endpoint,
'visibility' => 'private',
], ],
]); ]);