Skip to content

Commit

Permalink
Fix url() call for non-default root directories
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfejfar committed Oct 20, 2016
1 parent 51d43bb commit 4d75e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function url($path)

return $adapter->getClient()->getObjectUrl($adapter->getBucket(), $path);
} elseif ($adapter instanceof LocalAdapter) {
$path = '/storage/'.$path;
$path = $adapter->getPathPrefix().$path;

return Str::contains($path, '/storage/public') ? Str::replaceFirst('/public', '', $path) : $path;
} else {
Expand Down

0 comments on commit 4d75e6b

Please sign in to comment.