ronasit/laravel-chat
最新稳定版本:0.0.6-beta
Composer 安装命令:
composer require ronasit/laravel-chat
包简介
This package implements chat functionality based on push notifications.
README 文档
README
Introduction
This plugin adds the ability for users to work with chat functionalities in a Laravel application.
Installation
- Install the package using the following command:
composer require ronasit/laravel-chat
- Publish the package configuration:
php artisan vendor:publish --provider=RonasIT\\Chat\\ChatServiceProvider
- For Laravel <= 5.5 add
ronasit\Chat\ChatServiceProvider::classto theapp.providerslist in config. - Set your project's User model to the
chat.classes.user_modelconfig. - All routes are registered by default, you can change the route registration by calling
Route::chat()in your routes file (e.g.routes/api.php).- feel free to call
Route::chat()helper inside any route wrappers likegroup,prefix, etc. to wrap package routes; - calling
Route::chat()without args will add all package route inside the calling helper place; - calling
Route::chat()with any args will add only routes with chosen actions;
- feel free to call
Integration with LaravelSwagger
This package includes an OpenAPI documentation file. To include it in your project's documentation, you need to register it in the auto-doc.additional_paths config:
vendor/ronasit/laravel-chat/documentation.json
Contributing
Thank you for considering contributing to the Laravel Chat plugin! The contribution guide can be found in the Contributing guide.
License
Laravel Chat plugin is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 1.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-10