Downloading video to correct directory and displaying it on a chapter page.

This commit is contained in:
Krzysztof Płaczek
2022-11-17 08:24:17 +01:00
parent 21f61b0911
commit 2c62880282
4 changed files with 42 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
<x-layout>
<h1>
{{ $chapter->course->name }}
<small class="text-muted">{{ $chapter->title }}</small>
</h1>
<div>
<div class="mx-auto" style="width: 500px;">
<video class="mx-auto" width="500" controls>
<source src="/{{ $chapter->video_path }}" type="video/mp4"/>
</video>
</div>
</div>
</x-layout>