turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Livewire/VideoEmbed.php
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

29 lines
511 B
PHP

<?php
namespace App\Livewire;
use App\Http\Controllers\VideoController;
use Livewire\Component;
class VideoEmbed extends Component
{
public $height;
public $id;
public $thumb;
public $urlSCE;
public function mount()
{
$video = VideoController::getVideo($this->id);
$this->urlSCE = url('/') . '/' . $video['url'];
$this->thumb = url('/') . '/' . $video['thumb'];
}
public function render()
{
return view('livewire.video-embed');
}
}