feat: add storage_url helper function and update image URL retrieval to use public disk
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<div class="flex items-center space-x-6">
|
||||
<div class="flex-shrink-0">
|
||||
@if($profile->avatar_path)
|
||||
<img src="{{ Storage::url($profile->avatar_path) }}"
|
||||
<img src="{{ Storage::disk('public')->url($profile->avatar_path) }}"
|
||||
alt="Current Avatar"
|
||||
class="h-20 w-20 rounded-full object-cover border-2 border-gray-300 dark:border-gray-600">
|
||||
@else
|
||||
@@ -69,7 +69,7 @@
|
||||
<div class="space-y-4">
|
||||
@if($profile->banner_path)
|
||||
<div class="relative">
|
||||
<img src="{{ Storage::url($profile->banner_path) }}"
|
||||
<img src="{{ Storage::disk('public')->url($profile->banner_path) }}"
|
||||
alt="Current Banner"
|
||||
class="w-full h-32 object-cover rounded-lg border border-gray-300 dark:border-gray-600">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user