Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Respect's avatar

how to send auth api token in query body not in url params

works only if i sent it in paramter

Not Working If i sent in in URL query body

I'm using post man method get

0 likes
5 replies
Snapey's avatar

You cannot send query body in a GET request

This is not Laravel constraint, it is a feature of the http protocol, which as a web developer you need to know

Sergiu17's avatar

how to send auth api token in query body not in url params

Read more information about POST Request vs GET Request.

In two words, https://en.wikipedia.org/wiki/POST_(HTTP)

the POST request method requests that a web server accepts the data enclosed in the body of the request message

1 like
Respect's avatar

@SNAPEY - Thnakdd for answer when i use validation keep say for exmaple title is required untill i send it in params will be ok in body not ok using post

Please or to participate in this conversation.