Q:

How to get response from another site in laravel controller

I want to create API in laravel which gives data return.
I want to get data from this link
into my laravel controller.

A:

This can be done by pulling in guzzle.  Try: https://github.com/guzzle/guzzle
$client = new Client(); 
$body = $client->get('mtaapi.herokuapp.com/stations')->getBody(); 
$obj = json_decode($body);

Hope this helps you!!

