A
A
Alex Kyznetsov2017-05-30 10:34:21
Laravel
Alex Kyznetsov, 2017-05-30 10:34:21

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

6 answer(s)
C
Constantine1, 2017-05-31
@360157

I'm currently doing the exact same thing. Definitely pusher + laravel echo. Everything is easy and simple.

O
Oleg, 2017-05-30
@Austin_Powers

You can use ratchet. For your purposes, it should just fit. https://github.com/Askedio/laravel-ratchet

V
Vitaly, 2017-05-30
@vshvydky

dig into websockets, Normal solution can be built on socket.io + node.js
Using php for this task looks like crutches for armless...

N
Nurlan, 2017-05-30
@daager

https://github.com/wandenberg/nginx-push-stream-module
If your web server is on nginx, it's very easy to do with this module.

V
Viktor, 2017-05-30
@Levhav

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.

V
Veronika Stepanovna, 2017-05-30
@sargss

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 question

Ask a Question

731 491 924 answers to any question