Require this package with composer:
composer require cuongpd/lara-dom-crawler
use VnCode\VnCrawler\VnCrawler
$html = VnCrawler::get('https://google.com' , ['q' => 'laravel'] , ['mobile' => true , 'referer' => 'https://facebook.com' , 'header' => 'json']);
echo $html;
use VnCode\VnCrawler\VnCrawler
$dom = VnCrawler::dom('https://google.com' , ['q' => 'laravel'] , ['mobile' => true , 'referer' => 'https://facebook.com' , 'header' => 'json']);
echo $dom->find('title',0)->innertext;