Why My ‘application/x-www-form-urlencoded’ Request in Laravel Http Client Not Working

  api, http, laravel

i have an external API want to link to my laravel app as OTP service To Register System

The content Type of the API is application/x-www-form-urlencoded.
before link the api i try it in INSOMNIA and it works fine (see the picture below)

enter image description here

but in laravel app its not working , i try guzzle and Http client but for some reason its not working, and i think he is not consider the request as application/x-www-form-urlencoded.

My Code

enter image description here

The Message

enter image description here

Source: Laravel

Leave a Reply