Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -23,7 +23,7 @@ class Immerse extends Model | ... | @@ -23,7 +23,7 @@ class Immerse extends Model |
23 | public function getUrlAttribute($url) | 23 | public function getUrlAttribute($url) |
24 | { | 24 | { |
25 | if (Str::contains($url, '/storage/app/public/')) { | 25 | if (Str::contains($url, '/storage/app/public/')) { |
26 | - $str = Str::of($url)->replace('/usr/local/nginx/html/OnePoem/storage/app/public/', '/storage/'); | 26 | + $str = Str::of($url)->replace('/usr/local/nginx/html/OnePoem/storage/app/public/', ''); |
27 | return Storage::disk('public')->url($str); | 27 | return Storage::disk('public')->url($str); |
28 | } else { | 28 | } else { |
29 | return $url; | 29 | return $url; | ... | ... |
-
Please register or login to post a comment