$client = new Client();
$response =
$client->GET('http://ift.tt/2k8SDG6',
[
'json' => ['foo' => 'bar']
]);
This is how i'm sending a request to external LARAVEL api. I just want to know what do i need to write in laravel api router to get something return when i send this request. Currently i have the following code on laravel api router
Route::GET('module/url', 'Nameof Controller@NameOfMethhod');
And in controller looks like:
public function GetApplicationModuleList()
{
echo 'something';
//i want to print the parameter value which i just sent by above mention request.
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire