mateo / rtch
Real Time CHAT Laravel/Pusher
v1.0.8
2024-10-20 18:22 UTC
Requires
- php: ^8.0
- laravel/framework: ^9.0 || ^10.0 || ^11.0
This package is not auto-updated.
Last update: 2026-03-09 19:44:54 UTC
README
.env
PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=
Register provider
- Open your project
cd config/app.php
- register provider below in 'providers' section
Mateo\Rtch\ChatServiceProvider::class
publish routes & views
php artisan vendor:publish --tag=views php artisan vendor:publish --tag=routes php artisan vendor:publish --tag=controllers php artisan vendor:publish --tag=events php artisan vendor:publish --tag=resources
Routes web.php
Route::get('/rtch',[PusherController::class,'index'])->name('rtch'); Route::post('/rtch/broadcast',[PusherController::class,'broadcast'])->name('rtch.broadcast'); Route::post('/rtch/receive',[PusherController::class,'receive'])->name('rtch.receive');