Open sarfraznawaz2005 opened 7 years ago
hi @sarfraznawaz2005 its been a long time since I worked on this repo, if you are still interested in the solution lemme know.
@jrganfal I have stopped using it because of no solution and switched to websockets instead. However you can put up a solution/readme of how to do that in laravel for someone else who can use it. I tried but could not get it to work with laravel events, iam sure i must have missed something when i looked into it.
Thanks
@jrganfal I work with it, and I wonder what is the solution?! Thx.
Hi @atefBB thanks for your comment, I'll take a look if it needs an update in the logic of the package and update you here. I haven't maintained this package for a long time but I think I should.
@MAnfal This is a very useful package! Thank you Bro.
جزاك الله خيرا.
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