Real-time chatting and notifications in laravel 5(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
这篇关于Laravel 5 中的实时聊天和通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel 5 中的实时聊天和通知


基础教程推荐
- Web 服务器如何处理请求? 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php中的foreach复选框POST 2021-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的PDF导出 2022-01-01