protected getAllLinks ( string $html ) : |
||
$html | string | |
return |
protected function getAllLinks($html)
{
$domCrawler = new DomCrawler($html);
return collect($domCrawler->filterXpath('//a')->extract(['href']))->map(function ($url) {
return Url::create($url);
});
}