class UsersController
{
public function index()
{
$users = User::active()
->orderByName()
->get()
->only('id', 'name', 'email');
return Inertia::render('Users', [
'users' => $users
]);
}
}