mirror of
https://github.com/brian8544/turtle-wow.git
synced 2025-01-05 14:24:34 +00:00
24 lines
488 B
PHP
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');
|
||
|
}
|
||
|
}
|