Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit d84dc9b

Browse files
committed
Enable multiple gcs config
1 parent ea9a428 commit d84dc9b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/GoogleCloudStorageServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ class GoogleCloudStorageServiceProvider extends ServiceProvider
1212
{
1313
/**
1414
* Perform post-registration booting of services.
15+
*
16+
* @param string $config
1517
*/
16-
public function boot()
18+
public function boot(string $config = '')
1719
{
1820
$factory = $this->app->make('filesystem'); /* @var FilesystemManager $factory */
19-
$factory->extend('gcs', function ($app, $config) {
21+
$factory->extend('gcs' . $config, function ($app, $config) {
2022
$storageClient = new StorageClient([
2123
'projectId' => $config['project_id'],
2224
'keyFilePath' => array_get($config, 'key_file'),

0 commit comments

Comments
 (0)