salvatorecervone / chatonetoone
Real time Chat one to one
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- laravel/framework: ^11.0
- laravel/reverb: @beta
Requires (Dev)
- orchestra/testbench: ~7
- phpunit/phpunit: ~9.0
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
Moment
For use actual css and graph install
Prime vue
Prime vue 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