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

sshateri's avatar

external Graphql API with laravel

hey guys, I realized Laravel doesn't support using an external API out of the box and the application I'm working on has an off-site API. technically the DB and data structure API is excluded from the main application that I use Laravel for front-end and data manipulation. I know by using Guzzle its possible to use an external REST API but I could not find if Guzzle supports Graphql. how can I make this possible?

0 likes
1 reply
mabdullahsari's avatar
Level 16

GraphQL, just like REST, exposes an HTTP endpoint which means that you can throw requests at that endpoint.

GraphQL only exposes 1 single endpoint to which you send your queries (via POST preferably) and the endpoint responds with the particular data structure you asked for.

So in short, it is possible ofcourse.

https://graphql.org/learn/ This is a good place to start with.

Please or to participate in this conversation.