Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Last active January 3, 2022 15:22
Show Gist options
  • Save NandoKstroNet/e2f2714d882b4c07f313c0118b4da4a5 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/e2f2714d882b4c07f313c0118b4da4a5 to your computer and use it in GitHub Desktop.
Algumas rotas criadas no curso Laravel Mastery - https://laravelmastery.com.br
<?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
]
);
});
<?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