2017 © Pedro Peláez
 

library easychat

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

image

ronanflavio/easychat

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  • Friday, November 6, 2015
  • by ronanflavio
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 3 % Grown

The README.md

Discontinued

This project was discontinued., (*1)

Easychat for Laravel 4.x

Descrição

Chat baseado em jQuery para Laravel 4.x utilizando armazenamento em banco de dados MySQL e integração com a tabela de usuários do seu projeto., (*2)

Instalação

Laravel 5.x

Veja a instalação [clicando aqui] (https://github.com/kikonuy/easychat_l5)., (*3)

Laravel 4.x

Para instalar o Easychat, você deve entrar com o seguinte comando via composer:, (*4)

composer require "ronanflavio/easychat", (*5)

Em seguida, você deve adicionar a linha abaixo no fim da lista de providers, do arquivo app.php do seu projeto:, (*6)

'Ronanflavio\Easychat\EasychatServiceProvider',, (*7)

É necessário publicar os assets e configurações do package em seu projeto, para isso execute os comandos abaixo:, (*8)

php artisan asset:publish
php artisan config:publish ronanflavio/easychat

Existem tabelas que são necessárias para o funcionamento do chat, elas estão nomeadas com o prefixo ec_, com o intuito de diferenciá-las das tabelas do seu projeto. As migrations dessas tabelas estão dentro do package, para executá-las, utilize o comando abaixo:, (*9)

php artisan migrate --package=ronanflavio/easychat, (*10)

Configuração

Quando fizer a publicação do package, os arquivos de configuração estarão dentro do diretório:, (*11)

app\config\packages\ronanflavio\easychat, (*12)

É necessário informar qual o nome da tabela e da model, além dos principais campos: 'id' e 'name' respectivos à tabela de usuários dentro do arquivo tables.php. Veja abaixo o exemplo:, (*13)

'users' => array(

        /**
         * Set the Model name:
         */

        'model' => 'Usuario',

        /**
         * Set the Table name:
         */

        'table' => 'usuarios',

        /**
         * Set the Fields names:
         */

        'id'         => 'id',
        'name'       => 'nome',
        'photo'      => null,
        'created_at' => 'created_at',
        'updated_at' => 'updated_at',
    ),

É necessário também que exista um campo com o nome do usuário na sua tabela respectiva, como vemos no array acima. Caso na sua tabela de usuários exista um campo para a imagem de exibição do usuário, você pode atribuir o este campo na chave photo do array. Deixando o valor como null, o sistema irá utilizar uma imagem padrão., (*14)

Para criar um link que direcione até ao chat, utilize: URL::to(Config::get('easychat::uri'). Veja um exemplo:, (*15)

<a href="{{ URL::to(Config::get('easychat::uri') }}">Chat</a>, (*16)


Description

jQuery based chat for Laravel 4.x with database storage and integration with your users table., (*17)

The Versions

06/11 2015

dev-master

9999999-dev

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

16/09 2015

1.1.1

1.1.1.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

15/09 2015

1.1.0

1.1.0.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

13/09 2015

1.0.5

1.0.5.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

08/09 2015

1.0.4

1.0.4.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

08/09 2015

1.0.3

1.0.3.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

08/09 2015

1.0.1

1.0.1.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat

27/08 2015

1.0

1.0.0.0

jQuery based chat for Laravel 4 & 5 with database storage and integration with your users table.

  Sources   Download

The Requires

 

by Ronan Flavio

laravel jquery integration chat easychat