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

Commit 3480c82

Browse files
committed
laravel 5.8 or later doesn't support helper methods.
1 parent 69641de commit 3480c82

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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)