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

Commit 8985186

Browse files
author
Bertus Steenberg
authored
Support laravel 6.x
2 parents 249a7de + 3480c82 commit 8985186

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
],
1111
"require": {
1212
"php": ">=5.5.9",
13-
"illuminate/support": "^5.1|^5.2|^5.3",
13+
"illuminate/support": "^5.1|^6.0",
1414
"superbalist/flysystem-google-storage": ">=3.0 <8.0",
15-
"illuminate/filesystem": "^5.1|^5.2|^5.3",
15+
"illuminate/filesystem": "^5.1|^6.0",
1616
"league/flysystem-cached-adapter": "^1.0"
1717
},
1818
"autoload": {

src/GoogleCloudStorageServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ protected function createCacheStore($config)
5151

5252
return new Cache(
5353
$this->app['cache']->store($config['store']),
54-
array_get($config, 'prefix', 'flysystem'),
55-
array_get($config, 'expire')
54+
Arr::get($config, 'prefix', 'flysystem'),
55+
Arr::get($config, 'expire')
5656
);
5757
}
5858

@@ -67,8 +67,8 @@ public function boot()
6767
$storageClient = $this->createClient($config);
6868

6969
$bucket = $storageClient->bucket($config['bucket']);
70-
$pathPrefix = array_get($config, 'path_prefix');
71-
$storageApiUri = array_get($config, 'storage_api_uri');
70+
$pathPrefix = Arr::get($config, 'path_prefix');
71+
$storageApiUri = Arr::get($config, 'storage_api_uri');
7272

7373
$adapter = new GoogleStorageAdapter($storageClient, $bucket, $pathPrefix, $storageApiUri);
7474

@@ -84,7 +84,7 @@ public function boot()
8484
*/
8585
private function createClient($config)
8686
{
87-
$keyFile = array_get($config, 'key_file');
87+
$keyFile = Arr::get($config, 'key_file');
8888
if (is_string($keyFile)) {
8989
return new StorageClient([
9090
'projectId' => $config['project_id'],

0 commit comments

Comments
 (0)