ronanflavio/easychatl5
最新稳定版本:1.1.2
Composer 安装命令:
composer require ronanflavio/easychatl5
包简介
jQuery based chat for Laravel 5.1 with database storage and integration with your users table.
README 文档
README
This project was dicontinued.
Easychat for Laravel 5.x
Description
Chat based in jQuery for Laravel 5.0, 5.1 and 5.2. It was made with storage into a MySQL database and integration with the users' table from your project.
Instalation
Laravel 4.x
See how to [clicking here] (https://github.com/kikonuy/easychat).
Laravel 5.x
To install Easychat, follow the steps bellow:
1)
composer require ronanflavio/easychatl5
2)
If you're using Laravel 5.1 or 5.2, insert this line at the bottom of your providers list, into the config/app.php file.
'providers' => [
...
Ronanflavio\Easychat\EasychatServiceProvider::class,
];
In case of 5.0 version, do like this:
'providers' => [
...
'Ronanflavio\Easychat\EasychatServiceProvider',
];
3)
You need to publish the package files. So, do the following:
php artisan vendor:publish
The configurations files will be placed at: config/packages/Ronanflavio/Easychat.
The migrations files will be placed at your root project folder, in the directory: migrations/Ronanflavio/Easychat.
And the assets, will be placed at: public/packages/Ronanflavio/Easychat.
4)
To migrate the tables, do the following:
php artisan migrate --path=migrations/Ronanflavio/Easychat
Those tables are necessary for your chat. All of them are prefixed with ec_ to distinguish it from your owner tables.
5)
Finally, insert into your app\Http\Middleware\VerifyCsrfToken.php file, the exception for easychat URIs, like this:
protected $except = [
'easychat/*'
];
Configuration
When the package publish is done, the files will be placed at the direcoty: config\packages\Ronanflavio\Easychat.
Navigate to there and map your Models and database tables into the tables.php file like the example bellow:
'users' => array(
/**
* Set the Model name:
*/
'model' => 'App\User',
/**
* Set the Table name:
*/
'table' => 'usuarios',
/**
* Set the Fields names:
*/
'id' => 'id',
'name' => 'nome',
'photo' => null,
'created_at' => 'created_at',
'updated_at' => 'updated_at',
),
Details
The application is totally dependent of authenticate method from Laravel (Auth) and, of course, it's necessary that the user has been logged in into the system for it work.
ronanflavio/easychatl5 适用场景与选型建议
ronanflavio/easychatl5 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 158 次下载、GitHub Stars 达 7, 最近一次更新时间为 2015 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ronanflavio/easychatl5 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ronanflavio/easychatl5 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 158
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-05