why when I execute the code in the document of the laravel-goutte it doesn't work , that code is in the main page of the package on github:
https://github.com/dweidner/laravel-goutte
use Weidner\Goutte\GoutteFacadeGoutte;
Route::get('/', function() {
$crawler = Goutte::request('GET', 'http://duckduckgo.com/?q=Laravel');
$url = $crawler->filter('.result__title > a')->first()->attr('href');
dump($url);
return view('welcome');
});
and shows that error
I use laravel 2.2.29