tonyhhyip / laravel-sse

libSSE-php for Laravel framework
https://gitlab.com/tonyhhyip/laravel-sse
14 stars 4 forks source link

Your example code isn't working #2

Open roblesterjr04 opened 7 years ago

roblesterjr04 commented 7 years ago

I get "Call to undefined method Sse\Laravel\Facade\SSE::createResponse()" when I try following your setup procedure.

tonyhhyip commented 7 years ago

@roblesterjr04 Do you register the service provider and confirm the Laravel version is supported?

puneetthakur66 commented 7 years ago

Getting same error as @roblesterjr04 got. it is "Call to undefined method Sse\Laravel\Facade\SSE::createResponse()".

Laravel Framework version: 5.2.45 Register the service provider: Yes

providers: Sse\Laravel\SseServiceProvider::class aliases: 'SSE' => Sse\Laravel\Facade\SSE::class controller method code: $response = $sse->createResponse( function() { }); return $response;