Skip to content

Commit 22b1d46

Browse files
authored
Update SupabaseAdapter.php (#2)
1 parent 3de8d2a commit 22b1d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SupabaseAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class SupabaseAdapter implements FilesystemAdapter
4040
public function __construct(array $config)
4141
{
4242
$this->config = new Config($config);
43-
$endpoint = $this->config->get('endpoint') ?? throw new \LogicException('You need to specified endpoint');
43+
$endpoint = $this->config->get('endpoint') ?? throw new \LogicException('endpoint is not specified');
4444
$this->endpoint = $endpoint.'/storage/v1';
45-
$this->bucket = $this->config->get('bucket') ?? throw new \LogicException('You need to specify bucket');
46-
$this->key = $this->config->get('key') ?? throw new \LogicException('You need to specify key');
45+
$this->bucket = $this->config->get('bucket') ?? throw new \LogicException('bucket is not specified');
46+
$this->key = $this->config->get('key') ?? throw new \LogicException('key is not specified');
4747

4848
$this->httpClient = Http::baseUrl($this->endpoint)->withHeaders([
4949
'Authorization' => "Bearer {$this->key}",

0 commit comments

Comments
 (0)