Laravel 5 中的实时聊天和通知

2021-12-18 00:00:00 php 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.

推荐答案

对于实时聊天,您需要使用异步 websockets.

For real time chat you need to use asynchronous websockets.

你可以试试这个库https://github.com/ratchetphp/Ratchet

laravel 5.2聊天

和这个项目github.com/asserchris/tutorial-laravel-4-real-time-chat

好的图书馆github.com/BrainBoxLabs/brain-socket

还有很棒的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

相关文章