mateo/rtch

Real Time CHAT Laravel/Pusher

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:CSS

Type:package

v1.0.8 2024-10-20 18:22 UTC

This package is not auto-updated.

Last update: 2025-07-14 16:44:45 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');