1. Go to this page and download the library: Download nawasara/zoom library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
class Index extends Component
{
public function render()
{
return view('nawasara-zoom::livewire.pages.users.index')
->layout('nawasara-ui::components.layouts.app');
}
}
class Table extends Component
{
#[Url]
public string $search = '';
public function render()
{
$repo = new ZoomUserRepository();
$users = $repo->paginate(25, ['search' => $this->search]);
return view('nawasara-zoom::livewire.pages.users.section.table', [
'users' => $users,
]);
}
}