gongjieqi / laravel-chat
该包最新版本(0.4.0)没有提供许可证信息。
基于workman的消息服务器
0.4.0
2018-05-28 02:20 UTC
Requires
- illuminate/cache: ~5.0
- illuminate/console: ~5.0
- illuminate/support: ~5.0
- workerman/gateway-worker: ^3.0
This package is not auto-updated.
Last update: 2024-09-24 16:40:32 UTC
README
这是一个简易版本,结合laravel的用户和workman实现前后台用户聊天的webIM
操作步骤:
-
在config/app.php 中添加服务提供者:
Gongjieqi\LaravelChat\Chat\ChatServiceProvider::class,
-
运行 artisan vendor:publish
-
运行 artisan migrate
-
配置文件config/chat.php 参数说明:
30行以上的配置,参考workman手册(就是这么懒...) 'user' => 'App\User', //前台用户Model 'user_table' => 'users', //前台用户表 'user_guard' => 'web', //前台用户guard 'user_name_filed' => 'name', //前台用户用户名字段 接下来的就是对应后台用户的响应配置了
-
运行 php app/server/start.php start
-
将chat/chat.blade.php包含到对应的模板文件中