Skip to content

Commit

Permalink
Replace rtrim with Str::removeRight
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorieser committed Jan 21, 2025
1 parent b11efda commit ba16c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assets/AssetContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function url()
return null;
}

$url = rtrim($this->disk()->url('/'), '/');
$url = Str::removeRight($this->disk()->url('/'), '/');
$url = Str::removeLeft($url, config('app.url'));

return ($url === '') ? '/' : $url;
Expand Down

0 comments on commit ba16c16

Please sign in to comment.