dev-master
9999999-devLaravel Chat modified from socieboy/chat
MIT
The Requires
by Francisco Sepulveda
1.0.0
1.0.0.0Laravel Chat modified from socieboy/chat
MIT
The Requires
by Francisco Sepulveda
Laravel Chat modified from socieboy/chat
This is a package from socieboy/chat I modified this repository dont use actually I making modifications actually, please fork from the socieboy/chat :), (*1)
Deprecated, (*2)
Laravel Chat is a package to make on your own app a chat with multi users and private conversations., (*3)
This package use redis and socket.io to better performance., (*4)
Install redis on your server., (*5)
nmp install socket.io nmp install ioredis
Download laravel chat package to your project, (*6)
composer require "socieboy/chat" "dev-master"
Then execute the command, (*7)
Composer update
Place the service provider on your app.php config file., (*8)
Socieboy\Chat\ChatServiceProvider::class,
Now execute the command., (*9)
php artisan chat:tables
Then run, (*10)
php artisan migrate
Update the AuthenticatesAndRegistersUsers trait of the laravel auth controller. This trait is updated to fire events when a new user has been logged in and out., (*11)
Socieboy\Chat\Traits\AuthenticatesAndRegistersUsers
Publish the scripts and styles with the command, (*12)
php artisan vendor:publish
Set up on your master view page the fallow code. On the meta tags area between the <head></head> tags., (*13)
<meta name="token" id="token" value="{{ csrf_token() }}">
Also you have to add the style scripts., (*14)
<link rel="stylesheet" href="{{ url('css/chat.css') }}"/>
Same thing with the JS files required, make sure to place them in end before to close the <body><\body> tag., (*15)
<script src="{{ asset('js/socket.io.js') }}"></script> <script src="{{ url('js/chat.js') }}"></script>
Run redis on your server, (*16)
redis-server
Then on your project folder execute this code, (*17)
node socket.js
Laravel Chat modified from socieboy/chat
MIT
Laravel Chat modified from socieboy/chat
MIT