Last active
January 3, 2022 15:22
-
-
Save NandoKstroNet/e2f2714d882b4c07f313c0118b4da4a5 to your computer and use it in GitHub Desktop.
Algumas rotas criadas no curso Laravel Mastery - https://laravelmastery.com.br
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
<?php | |
Route::get('/watch/{video:code}',\App\Http\Livewire\Player::class)->middleware('auth')->name('video.player'); | |
Route::get('resources/{code}/{video}', function($code, $video = null) { | |
return \Illuminate\Support\Facades\Storage::disk('videos_processed') | |
->response( | |
$video, null, [ | |
'Content-Type' => 'application/x-mpegURL', | |
'isHls' => true | |
] | |
); | |
}); |
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
<?php | |
Route::get('/{content}/videos/create', \App\Http\Livewire\Content\Video\CreateVideo::class)->name('video.create'); | |
Route::get('/{content}/videos/list', \App\Http\Livewire\Content\Video\ListVideo::class)->name('video.list'); | |
Route::get('/{content}/videos/edit/{video}', \App\Http\Livewire\Content\Video\EditVideo::class)->name('video.edit'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment