Download the PHP package xparthxvorax/larachat without Composer
On this page you can find all versions of the php package xparthxvorax/larachat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xparthxvorax/larachat
More information about xparthxvorax/larachat
Files in xparthxvorax/larachat
Package larachat
Short Description A real-time socket based chat application for Laravel
License
Informations about the package larachat
Prerequisites:
You must have PHP > 7.0, Laravel > 5.0, Web server (Apache/Ngnix), Node.js and npm installed on your machine
Please follow below steps to install the package to a new or an existing Laravel site:
-
Run
php artisan make:authto scaffold basic login and registration views and routes -
Install package using
composer require xparthxvorax/larachatcommand -
Run
php artisan larachat:installcommand -
Setup front-end:
- Run
npm install -g laravel-echo-servercommand -
Add below dependencies to the
package.jsonfile: - Run
npm installcommand -
Add below lines to
resources/js/bootstrap.js -
Add below line to
resources/js/app.js -
To display a user list, add
<larachat-component></larachat-component>inresources/views/home.blade.phplike:Or you may put
<larachat-component></larachat-component>to any other view wherever it fits best as per your site design layout. Also you may modify Vue component's default HTML and CSS intoresources\js\components\LarachatComponent.vueas per your requirement.
- Run
-
Set
BROADCAST_DRIVER=redisand addLARAVEL_ECHO_SERVER_AUTH_HOST=your-site-url -
Runn
npm run devcommand to compile front-end assets - Run
laravel-echo-server startto start socket server. Keep the command running or you may use supervisor for that(https://laravel.com/docs/master/queues#supervisor-configuration)
Demo video: https://www.youtube.com/watch?v=GKeMBxQWOyw
Live demo site: http://52.66.210.249/larachat/public/
-
Account 1:
Username: [email protected]
Password: secret
-
Account 2:
Username: [email protected]
Password: secret
-
Account 3:
Username: [email protected]
Password: secret