Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Commit 906e131

Browse files
committed
Trim first slash.
1 parent c71ddd9 commit 906e131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UrlResolverTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected function getLocalUrl($path)
8787
return rtrim($config->get('url'), '/').'/'.ltrim($path, '/');
8888
}
8989

90-
$path = '/storage/'.$path;
90+
$path = '/storage/'.ltrim($path, '/');
9191

9292
// If the path contains "storage/public", it probably means the developer is using
9393
// the default disk to generate the path instead of the "public" disk like they

0 commit comments

Comments
 (0)