@php $url = 'https://hampsteadartsociety.squarespace.com/gallery-2024-not-visible'; $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, true); $html = curl_exec($handle); libxml_use_internal_errors(true); // Prevent HTML errors from displaying $doc = new DOMDocument(); $doc->loadHTML($html); $c = 1; foreach ($doc->getElementsByTagName('figure') as $figure){ dd($figure); } @endphp