Laravel-Realtime-Chat
Laravel-Realtime-Chat copied to clipboard
Real time group & private chat using Laravel brodcasting, Laravel Echo, Socket.io and Redis
Prerequisite
Make sure you have redis installed on your machine and redis service is on.
How to run?
-
Install composer dependencies by running
composer install
-
Install Laravel echo server globally by running
npm install -g laravel-echo-server
-
Change database credentials into .env file according to your environment and run php artisan migrate
-
Set BROADCAST_DRIVER and QUEUE_DRIVER to redis into .env file
-
Change authHost into laravel-echo-server.json file according to your site URL
-
Run
laravel-echo-server start
(keep running in background)
Live demo
http://52.66.22.29/lara_chat/public