定制 salvatorecervone/chatonetoone 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salvatorecervone/chatonetoone

最新稳定版本:2.0.5

Composer 安装命令:

composer require salvatorecervone/chatonetoone

包简介

Real time Chat one to one

README 文档

README

Demo

https://github.com/SalvatoreCervone/ChatOnetoOneDemo.git

Required

Laravel version >= 11

https://laravel.com/docs/11.x/installation

Laravel Reverb

https://laravel.com/docs/11.x/reverb#main-content

Carbon

https://carbon.nesbot.com/

Moment

https://momentjs.com/

For use actual css and graph install

Prime vue

https://primevue.org/vite/

Prime vue icons

https://primevue.org/icons/

Installation

Via Composer

composer require salvatorecervone/chatonetoone

Publishs

If you would publish for change normal use of:

1.Controllers 2.Models

you use:

Publish controller

php artisan vendor:publish --tag=controller-chatonetoone

Publish model

php artisan vendor:publish --tag=model-chatonetoone

Its obligatory publish

Publish vue component

php artisan vendor:publish --tag=vue-chatonetoone

Publish event

php artisan vendor:publish --tag=event-chatonetoone

Publish config

php artisan vendor:publish --tag=config-chatonetoone

Publish migration

php artisan vendor:publish --tag=migration-chatonetoone

Migrations

Call migrations

php artisan migrate

Usage

Start server websocket

php artisan reverb:start

Now you have Controllers, Models, Migrations and Vue components for Chat one to one

The components is locate in resources/js/Pages/chatonetoone/

The component ChatComponent is the start component for Chat

Go to route {APP_URL}/chats

and view chat run

Remember

In production change ip, or name, in file .env of REVERB_HOST

KEY -> REVERB_HOST

with the ip where application websocket installed

if the server is one, for application and chat, you would write new env key

APP_URL_NO_SCHEMA=127.0.0.1

and apply with

REVERB_HOST="${APP_URL_NO_SCHEMA}"

Security

If you discover any security related issues, please email salvatore999@virgilio.it instead of using the issue tracker.

Credits

  • [Salvatore Cervone]

License

MIT. Please see the license file for more information. [link-packagist]: https://packagist.org/packages/salvatorecervone/chatonetoone

统计信息

  • 总下载量: 78
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-07