37 lines
718 B
PHP
37 lines
718 B
PHP
<?php
|
|
|
|
namespace App\Http\Livewire\Module;
|
|
|
|
use App\Repositories\vCenter\vCenterRepositoryInterface;
|
|
use Livewire\Component;
|
|
|
|
class Vcenter extends Component
|
|
{
|
|
public $model;
|
|
public $vcenters = [];
|
|
|
|
protected $vCenterRepository;
|
|
|
|
public function boot(vCenterRepositoryInterface $vCenterRepository)
|
|
{
|
|
$this->vCenterRepository = $vCenterRepository;
|
|
}
|
|
|
|
public function mount($model = null)
|
|
{
|
|
$this->model = $model;
|
|
|
|
$this->vcenters = $this->vCenterRepository->filter(
|
|
['status' => 1],
|
|
[],
|
|
[],
|
|
['id', 'host']
|
|
);
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.module.vcenter');
|
|
}
|
|
}
|