Hi, I was wondering if there's a way to integrate this with guzzle? I'm calling an external restful api. I'm new to Datatable so not sure if it's possible. Right now i'm just doing a foreach in my view. How to integrate this with datatable?
Controller
public function getIndex() {
$client = new \GuzzleHttp\Client();
$response = $client->get('http://api.company.com/members');
$body = json_decode($response->getBody());
$content = view('members')->with('members',$body);
return Admin::view($content, 'Members');
}
Hi, I was wondering if there's a way to integrate this with guzzle? I'm calling an external restful api. I'm new to Datatable so not sure if it's possible. Right now i'm just doing a foreach in my view. How to integrate this with datatable?
Controller
View