protected function fetchLinkableNodes($response) { $crawler = $this->getCrawler($response); return collect($crawler->filter('link, script[src], img[src]')->extract(['src', 'href'])); }