/Laravel-Realtime-Chat

Real time group & private chat using Laravel brodcasting, Laravel Echo, Socket.io and Redis

Primary LanguagePHP

Prerequisite

Make sure you have redis installed on your machine and redis service is on.

How to run?

  1. Install composer dependencies by running composer install

  2. Install Laravel echo server globally by running npm install -g laravel-echo-server

  3. Change database credentials into .env file according to your environment and run php artisan migrate

  4. Set BROADCAST_DRIVER to redis and QUEUE_DRIVER to sync into .env file

  5. Change authHost into laravel-echo-server.json file according to your site URL

  6. Run laravel-echo-server start (keep running in background)

Live demo

http://52.66.22.29/lara_chat/public