Answer the question
In order to leave comments, you need to log in
Real-time chat with Laravel database entry?
Good afternoon, please tell me who has come across how you can create a chat on laravel with the ability to connect users,
I would also like the output and sending of messages to occur without reloading the page,
tell me where to dig, Many thanks in advance
Answer the question
In order to leave comments, you need to log in
I'm currently doing the exact same thing. Definitely pusher + laravel echo. Everything is easy and simple.
You can use ratchet. For your purposes, it should just fit. https://github.com/Askedio/laravel-ratchet
dig into websockets, Normal solution can be built on socket.io + node.js
Using php for this task looks like crutches for armless...
https://github.com/wandenberg/nginx-push-stream-module
If your web server is on nginx, it's very easy to do with this module.
To send messages via websockets you need a comet server. In addition to those already advised in other answers, as an option, you can use this https://github.com/CppComet/comet-server comet server
Here is a simple example of a chat to which you can attach saving to the database.
To implement real-time applications, there is an excellent free service pusher.com. It allows you not to load the server with constant ajax requests and update messages only when they arrive. There is also a package for laravel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question