Skip to content

Commit

Permalink
fix image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozach committed Aug 11, 2018
1 parent f879318 commit 9e611f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/kiosk/content/post.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class="form-control input-lg"
<div class="card-body">
<div class="form-group">
<div v-if="post.featured_image">
<img :src="'/' + post.featured_image.filename" width="200">
<img :src="'/storage/' + post.featured_image.filename" width="200">
<a href="#" @click.prevent="removeMedia" class="text-danger">Remove</a>
</div>
<div v-else>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/posts/card.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="card">
<a href="{{ $post->path() }}"><img src="{{ $post->thumbnail() }}" alt="{{ $post->title }}" class="w-100 img-fluid rounded-top"></a>
<a href="{{ $post->path() }}"><img src="/storage{{ $post->thumbnail() }}" alt="{{ $post->title }}" class="w-100 img-fluid rounded-top"></a>
<div class="card-body">
<h4>
<a href="{{ $post->path() }}">{{ $post->title }}</a>
Expand Down

0 comments on commit 9e611f8

Please sign in to comment.