Update source into github
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user