Downloading video to correct directory and displaying it on a chapter page.
This commit is contained in:
13
resources/views/chapter/index.blade.php
Normal file
13
resources/views/chapter/index.blade.php
Normal 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>
|
||||
Reference in New Issue
Block a user