lundi 26 septembre 2016

How can i handle json response which is returned by controller in Laravel

I'm trying to use some Rest services in laravel 5.Those are returning data in json format how can i handle those json in my view.

this is my code

function someFunction(){
/*   Example Restful service*/

$response= somedata;//Received from Restful Service

return Response::json($resopnse,200);

}

i have a angular js controller in my view. Now my problem is how can i use the json respose it as a scope



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire