Last active
February 4, 2018 19:44
-
-
Save mitrallex/1ecd5bd48ddb8068d742679150b0e855 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 == 'audio'"> | |
| <figure class="image is-4by3"> | |
| <img src="{{ asset('images/music.png') }}" alt="Audio image" id="audio_image"> | |
| </figure> | |
| <audio controls> | |
| <source src="" :src="'{{ asset('storage/' . Auth::user()->name . '_' . Auth::id()) }}' + '/' + file.type + '/' + file.name + '.' + file.extension" :type="'audio/' + file.extension"> | |
| Your browser does not support the audio tag. | |
| </audio> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment