We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8471f2 commit a0d216fCopy full SHA for a0d216f
app/Models/Image.php
@@ -174,7 +174,7 @@ public function url(): Attribute
174
if ($this->group?->configs->get(GroupConfigKey::IsEnableOriginalProtection)) {
175
return asset("{$this->key}.{$this->extension}");
176
} else {
177
- return rtrim($this->strategy?->configs->get('url'), '/').'/'.$this->pathname;
+ return rtrim($this->strategy?->configs->get('url'), '/').'/'.ltrim($this->pathname, '/');
178
}
179
});
180
0 commit comments