Thanks for this! Very useful. For anyone else who had trouble handling the request data on the Laravel side, I had to set the Content-Type header in the Axios post method to application/json before I could decode it in the controller method.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this! Very useful. For anyone else who had trouble handling the request data on the Laravel side, I had to set the
Content-Type
header in the Axios post method toapplication/json
before I could decode it in the controller method.