Skip to content

Commit

Permalink
Merge pull request #52 from cidosx/master-1
Browse files Browse the repository at this point in the history
feat: 支持 `url` 配置, 访问文件自动与上传端点进行区分
  • Loading branch information
iiDestiny authored Aug 25, 2023
2 parents b0a06c0 + aa22205 commit 30e7881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OssStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function boot()
$buckets
);

$adapter->setCdnUrl($config['url'] ?? null);

return new FilesystemAdapter(new Filesystem($adapter), $adapter, $config);
});
}
Expand Down

0 comments on commit 30e7881

Please sign in to comment.