laravel 5中的实时聊天和通知 [英] Real-time chatting and notifications in laravel 5
问题描述
我需要在我的应用程序中实现实时聊天和实时通知.使用laravel-5的最佳方法是什么?向我建议一些好的软件包或您对它们的专家看法.
I need to implement real-time chatting and real-time notifications in my application. What is the best way to do it using laravel-5? Suggest me some good packages or your expert views on them.
推荐答案
要进行实时聊天,您需要使用异步网络套接字.
For real time chat you need to use asynchronous websockets.
您可以尝试使用该库 https://github.com/ratchetphp/Ratchet
和这个项目 github.com/assertchris/tutorial-laravel-4-real-time-chat
好的图书馆 github.com/BrainBoxLabs/brain-socket
关于套接字IO的惊人教程 www.codetutorial.io/laravel-5-and-socket-io-tutorial/
also amazing tutorial with socket IO www.codetutorial.io/laravel-5-and-socket-io-tutorial/
使用AJAX和laravel 4的视频示例 https://www.youtube.com/watch?v=GLDjgbbBvOg
Video example with AJAX and laravel 4 https://www.youtube.com/watch?v=GLDjgbbBvOg
这篇关于laravel 5中的实时聊天和通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!