jeudi 1 juin 2017

Fetch API Json data in controller using Laravel5

I need to get the API data in my controller and then pass in my views? Do i need to install GuzzleHttp,or there is any other way to get the response from the API and then pass it to views? Here what i am trying to do

//Controller public function getIndex() {
$api = 'https://api.abc.com'; dd($api); }

It shows just a string not the response



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire