Answer the question
In order to leave comments, you need to log in
Chat Laravel 5.2?
Hello!
I don't know the socet.io library, node.js and redis technology, but I need to write a chat in my application on laravel 5.2,
for about 50 people at the same time.
What is the best chat to use in Laravel 5.2? What is the most convenient and understandable.
Who uses what in their applications on Laravel?
Skinte please links to the documentation with the demo preferably.
Who will advise what?
Answer the question
In order to leave comments, you need to log in
Laravel is a server-side framework.
Judging by this fact, your requirements for "convenience" and "understandability" are immediately swept aside, because you must write the interface yourself.
Further, PHP cannot work with sockets out of the box, and all implementations of this are too crutch.
You will have to use Node anyway. If you don't want to bother, read this manual:
itsolutionstuff.com/post/laravel-52-chat-message-m...
There is a ready-made code, just follow the steps.
Last used a centrifuge for this. The user sends a message to the Laravel application, and the application broadcasts to everyone who needs it using event broadcasting (Laravel version was 5.1). If you need a chat and only a chat, then it seems to me that it would be better to use javascript or go on the server, php has trouble with websockets.
Start at socketo.me/. Google YouTube videos and you will find good tutorials.
The simplest option is to use one of the SaaS comet servers https://habrahabr.ru/company/comet-server/blog/273573/ then the Ajax server will not have to be loaded with requests and will work quickly.
From the developments, I can share the sources of my chat city-chat.comet-server.ru or comet-server.com/wiki/doku.php/comet:star-comet-chat or comet-server.ru/wiki/doku.php/comet :chat-with-auth... could also answer questions on Skype if there are questions about reusing the code of these examples.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question