replace url to route

This commit is contained in:
Cüneyt Şentürk
2020-08-11 16:52:10 +03:00
parent deee58af52
commit 10bd79ad7a
28 changed files with 41 additions and 35 deletions

View File

@@ -10,7 +10,7 @@
<i class="fas fa-file-image display-3"></i>
@else
<a href="#" class="avatar">
<img src="{{ url('uploads/' . $file->id) }}" alt="{{ $file->basename }}">
<img src="{{ route('uploads.get', $file->id) }}" alt="{{ $file->basename }}">
</a>
@endif
</div>
@@ -37,7 +37,7 @@
@endif
@endpermission
<a href="{{ url('uploads/' . $file->id . '/download') }}" type="button" class="btn btn-sm btn-info text-white header-button-top">
<a href="{{ rotue('uploads.download', $file->id) }}" type="button" class="btn btn-sm btn-info text-white header-button-top">
<i class="fas fa-file-download"></i>
</a>
</div>