Search code examples
phphttplaravelhttprequest

Laravel: HTTPrequest to another server


How to make http request to another server through Laravel?

I'll be pleased to provide whatever information you need

any help is much appreciated


Solution

  • Depends how complex the request needs to be. You can use curl or even, file_get_contents for simple get requests, or install a package like Guzzle for more complex things.

    https://github.com/guzzle/guzzle