問題描述
我需要在我的應用程序中實現實時聊天和實時通知.使用 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 中的實時聊天和通知的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!