Open sarfraznawaz2005 opened 7 years ago
hi @sarfraznawaz2005 I met the same problem do you have the solution about it? -Handle
@hxshandle nope no solutions yet so i started using websockets http://codeinphp.github.io/post/sockets-with-php-and-node/
Hi, thanks for the libaray !
I am to send messages and everything works but I want to ask how to send SSE event when some laravel events happens such as when a user logs in or when a new record of certain model is created.
I tried below code to send SSE event when a user logged in but it doesn't work:
If I return
true
directly fromcheck
method, I can see theA new user just logged in
coming in browser, however I want to be able to do so only when a user logs in on theauth.login
event of laravel.I also tried for my custom model events, they also don't work:
Question:
How to make this library work with Laravel Events or how to handle laravel events logic in the
check
method ?Thanks