How-to articles, tricks, and solutions about HTTP
Detecting request type in PHP (GET, POST, PUT or DELETE)
In PHP, you can use the $_SERVER['REQUEST_METHOD'] superglobal to detect the request type.
Doing HTTP requests FROM Laravel to an external API
To make an HTTP request from Laravel to an external API, you can use the HTTP client of your choice.
How do I implement basic "Long Polling"?
Here's an example of how you can implement Long Polling in PHP: