2017 © Pedro Peláez
 

library chatbox

Chat application for backend

image

laravelchat/chatbox

Chat application for backend

  • Monday, May 15, 2017
  • by twinklesharma
  • Repository
  • 1 Watchers
  • 0 Stars
  • 34 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

laravel-chatbox

Facilitates any laravel project to integrate chat functionality., (*1)

Installation

Add laravelresource/resourcemaker as a requirement to composer.json :, (*2)

{
    "require": {
        "laravelchat/chatbox": "dev-master"
    }
}

Update your packages with composer update or install with composer install., (*3)

You can also add the package using composer require laravelchat/chatbox "dev-master" and later specifying the version you want (for now, dev-master is your best bet)., (*4)

Service Provider

LaravelChat\ChatBox\ChatServiceProvider::class,, (*5)

And that's it! Start working with a awesome chat application!, (*6)

Publish vendor files

From the command line, run:, (*7)

php artisan vendor:publish --tag=public --force

How to integrate Chatbox in laravel

Firstly you have to register the users in your chat app for this you can use the APIs of quickblox (https://quickblox.com/developers/Users)., (*8)

After registration of users, open your login blade file and add the following code:, (*9)

<script type="text/javascript"> $(document).ready(function(){ $('#myform1').click(function(){ sessionStorage.clear(); var login = $('#login-name').val(); var pass = $('#login-pass').val(); sessionStorage.setItem('login',login ); sessionStorage.setItem('pass', pass); }); }); </script>, (*10)

Where, #myform1 is the id of login form, #login-name is the id of username/email and #login-pass is the id password input field. In the above, code we are just storing the user's credentails in a session so that we can use this in connection.js which allows user to start chat., (*11)

The Versions

15/05 2017

dev-master

9999999-dev

Chat application for backend

  Sources   Download

The Requires

  • php >=5.5.9

 

by Avatar twinklesharma