zabolots/laravel-chat
Composer 安装命令:
composer require zabolots/laravel-chat
包简介
Add online chat with your visitors to Laravel website
README 文档
README
Laravel Chat allows you to add an online chat with visitors of your site. Chat based on JivoSite (default) or SiteHeart.
Install
composer require zabolots/laravel-chat:dev-masterphp artisan vendor:publish --provider="Zabolots\LaravelChat\ChatServiceProvider"Next you must to register on JivoSite by this url: https://goo.gl/yA8aLW and add your site in admin panel here: https://goo.gl/Ezd7Wt
If you have Laravel 5.5 or higher you can skip this step: open config/app.php and add
\Zabolots\LaravelChat\ChatServiceProvider::class,to providers array and'Chat' => \Zabolots\LaravelChat\ChatFacade::class,to aliases array.
Configure
- ADD
CHAT_PROVIDER=jivositeorCHAT_PROVIDER=siteheartto.envfile. - Add
CHAT_ID=<your_id>to.envfile. For JivoSite you can find in javascript code (look at line with widget_id). For SiteHeart you can find in SiteHeart (Setup -> Widjet -> Code and look at line with widget_id). - Add
{!! Chat::render() !!}to your blade template file.
How to switch off chat
You can just add CHAT_SHOW=false to .env file if you want to switch off chat on your site.
统计信息
- 总下载量: 362
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-10-15