What seems to be the problem:
Hey, Is it possible to represent result of each iteration of cycle
<button class="button wire:click="updateDomains()"> normal update </button>
Are you using the latest version of Livewire 2.4.1
`public function updateDomains(){
$domains = Domain::all();
foreach ($domains as $domain){
$result[$domain->id] = [
'title' => $domain->title,
'status' => self::checkStatus($domain->url),
];
}
return $result;
}
private function checkStatus($url): string
{
$response = Http::get($url);
return $response->ok() ? 'Ok': 'Error';
}`