mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-03 21:34:35 +00:00
29 lines
511 B
PHP
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');
|
|
}
|
|
}
|