Skip to content

Instantly share code, notes, and snippets.

View hex0gen's full-sized avatar
💭
I may be slow to respond.

hexogen hex0gen

💭
I may be slow to respond.
View GitHub Profile
@hex0gen
hex0gen / intro.md
Created April 26, 2018 08:44 — forked from derhuerst/intro.md
Installing Git on Linux, Mac OS X and Windows
Using nginx version: nginx/1.6.2 and Laravel 5
In the controller:
use Symfony\Component\HttpFoundation\StreamedResponse;
- - - - - - Some method - - - - - - - - -
$response = new StreamedResponse();
$response->headers->set('Content-Type', 'text/event-stream');
$response->headers->set('Cache-Control', 'no-cache');
$response->setCallback(
function() {