Skip to content

Commit 46ac6e5

Browse files
committed
fix: use asset so the fallback image loads
1 parent 9bd1f57 commit 46ac6e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/articles/show.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
src="{{ $article->heroImage(2000,384) }}"
2727
alt="Article Hero Image"
2828
onerror="
29-
this.onerror=null;
30-
this.src='images/default-background.svg';"
29+
this.onerror=null
30+
this.src='{{ asset('images/default-background.svg') }}'"
3131
>
3232
<div class="flex items-center justify-between mb-28 text-sm lg:text-base">
3333
<a href="{{ route('articles') }}" class="flex items-center text-white hover:underline">

resources/views/components/articles/summary.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
alt="Article Hero Image"
1313
onerror="
1414
this.onerror=null;
15-
this.src='images/default-background.svg';"
15+
this.src='{{ asset('images/default-background.svg') }}'"
1616
>
1717
</a>
1818
@endif

0 commit comments

Comments
 (0)