Skip to content

Commit

Permalink
fix: image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Aug 2, 2024
1 parent e71f021 commit a7b23f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/events/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
@enderror
</div>
@if ($event->image)
<img src="{{ asset('storage/images/' . $event->image) }}" alt="Event Image" class="img-thumbnail mt-2" width="200">
<img src="{{ asset('storage/banners/' . $event->image) }}" alt="Event Image" class="img-thumbnail mt-2" width="200">
@endif
</div>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/events/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@if($event->image)
<div class="card shadow mb-4">
<div class="card-body text-center">
<img src="{{ $event->image }}" alt="{{ $event->title }}" class="img-fluid">
<img src="{{ asset('storage/banners/' . $event->image) }}" alt="{{ $event->title }}" class="img-fluid">
</div>
</div>
@endif
Expand Down

0 comments on commit a7b23f4

Please sign in to comment.