turtle-wow-source-kinda/Dumps/Source Code/8 - Development_website/develop/app/Livewire/VideoEmbed.php

29 lines
511 B
PHP
Raw Normal View History

2024-08-06 16:06:40 +00:00
<?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');
}
}