Created
February 4, 2018 19:45
-
-
Save mitrallex/d4e9d50810ba0f8d8995bd8bb3fd126c to your computer and use it in GitHub Desktop.
laravel-file-hosting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div v-if="file.type == 'document'" class="document_block"> | |
| <figure class="image is-4by3"> | |
| <img src="{{ asset('images/document.png') }}" alt="Audio image" id="audio_image"> | |
| </figure> | |
| <a class="button is-primary" href="" :href="'{{ asset('storage/' . Auth::user()->name . '_' . Auth::id()) }}' + '/' + file.type + '/' + file.name + '.' + file.extension" target="_blank"> | |
| <i class="fa fa-download" aria-hidden="true"></i> | |
| Download | |
| </a> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment