Showing
1 changed file
with
2 additions
and
2 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/', ''); | 26 | + $str = Str::of($url)->replace('/usr/local/nginx/html/OnePoem/storage/app/public/', '/storage/'); |
27 | return Storage::disk('public')->url($str); | 27 | return Storage::disk('public')->url($str); |
28 | } else { | 28 | } else { |
29 | return $url; | 29 | return $url; |
... | @@ -33,7 +33,7 @@ class Immerse extends Model | ... | @@ -33,7 +33,7 @@ class Immerse extends Model |
33 | public function getThumbnailAttribute($url) | 33 | public function getThumbnailAttribute($url) |
34 | { | 34 | { |
35 | if (Str::contains($url, '/storage/app/public/')) { | 35 | if (Str::contains($url, '/storage/app/public/')) { |
36 | - $str = Str::of($url)->replace('/usr/local/nginx/html/OnePoem/', ''); | 36 | + $str = Str::of($url)->replace('/usr/local/nginx/html/OnePoem/storage/app/public/', ''); |
37 | return Storage::disk('public')->url($str); | 37 | return Storage::disk('public')->url($str); |
38 | } else { | 38 | } else { |
39 | return $url; | 39 | return $url; | ... | ... |
-
Please register or login to post a comment