Can somebody help me to solve this problem ! When I try to access data from a web service using curl json, I got this error !
To solve this error, what should I do ! Didn't work php artisan key:generate
this is my code snippet I used to retrieve data !
public function getallItems() { $url = "http://localhost/WebService/public/category/getcategories"; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL, $url); //curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_TIMEOUT,3); $response = curl_exec($ch); curl_close($ch); echo $response;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community