Created
February 4, 2018 19:44
-
-
Save mitrallex/b501995305970170ec9cb12e2e9100be 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 == 'video'" class="video_block"> | |
| <video controls> | |
| <source src="" :src="'{{ asset('storage/' . Auth::user()->name . '_' . Auth::id()) }}' + '/' + file.type + '/' + file.name + '.' + file.extension" :type="'video/' + file.extension"> | |
| Your browser does not support the video tag. | |
| </video> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment