sabih-od / chat-module-laravel
Simple Chat package for laravel.
Requires
- php: >=7.4
- beyondcode/laravel-websockets: ^2.0@beta
- doctrine/dbal: ^2|^3
- pusher/pusher-php-server: ~3.0
- spatie/laravel-medialibrary: ^9.0.0
- staudenmeir/eloquent-json-relations: ^1.1
Requires (Dev)
- orchestra/testbench: ^6.0
This package is not auto-updated.
Last update: 2025-03-22 22:28:46 UTC
README
1. Installation
composer require sabih-od/chat-module-laravel
php artisan vendor:publish --provider="ChatModule\ChatModuleServiceProvider" --tag=migrations
php artisan vendor:publish --provider="ChatModule\ChatModuleServiceProvider" --tag=config
php artisan vendor:publish --provider="ChatModule\ChatModuleServiceProvider" --tag=assets
2. Set websocket
BROADCAST_DRIVER=pusher
PUSHER_APP_ID=3e176ea8ddd4
PUSHER_APP_KEY=09f7337de6e2
PUSHER_APP_SECRET=f15db97569e8
PUSHER_APP_CLUSTER=mt1
3. Uncomment Line
App\Providers\BroadcastServiceProvider::class,
in config/app.php
4. Set Queue table
php artisan queue:table
php artisan migrate
set QUEUE_CONNECTION=database
in .env
file.
5. Run Commands
php artisan queue:work --queue=high,default
php artisan websockets:serve --port=3001