2017 © Pedro Peláez
 

package chat

Laravel Chat modified from socieboy/chat

image

blenderdeluxe/chat

Laravel Chat modified from socieboy/chat

  • Saturday, August 6, 2016
  • by blenderdeluxe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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

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)

Installation

Required

Install redis on your server., (*5)

nmp install socket.io
nmp install ioredis

Download and Installation

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,

Migrations

Now execute the command., (*9)

php artisan chat:tables

Then run, (*10)

php artisan migrate

Update laravel auth

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

Styles and Scripts

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>

Usage

Run redis on your server, (*16)

redis-server

Then on your project folder execute this code, (*17)

node socket.js

The Versions

06/08 2016

dev-master

9999999-dev

Laravel Chat modified from socieboy/chat

  Sources   Download

MIT

The Requires

 

by Francisco Sepulveda

06/08 2016

1.0.0

1.0.0.0

Laravel Chat modified from socieboy/chat

  Sources   Download

MIT

The Requires

 

by Francisco Sepulveda