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

24 lines
488 B
PHP

<?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');
}
}