jdrda / laravel-google-custom-search-engine

Laravel package to get Google Custom Search results from Google Custom Search Engine API for both free and paid versions.
MIT License
48 stars 17 forks source link

Issue in LaravelGoogleCustomSearchEngine.php #2

Open Brilliant16 opened 7 years ago

Brilliant16 commented 7 years ago

Hi Great package. I face an error while using this package. Getting curl_error(): 2 is not a valid cURL handle resource. so when I search it & found this error in LaravelGoogleCustomSearchEngine.php on line 132-137 so I delete curl_close($ch) from 132 and paste after if ($output === false || $info['http_code'] != 200) It solved my error. so pleae see this If it is error global so correct this or correct me.

I found answer here. http://stackoverflow.com/questions/19442999/getting-curl-error-2-is-not-a-valid-curl-handle-resource-while-fetching-all-u/#answer-19443045

And Great package. It help me to done my work. Thank you