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

24 lines
488 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 WatchTv extends Component
{
public $view = 'all';
public $channels = [];
public function mount()
{
$videoController = new VideoController();
$this->channels = $videoController->getVideos()['data'];
$this->view = $videoController->getVideos()['view'];
}
public function render()
{
return view('livewire.watch-tv');
}
}