Refactor chat functionality: remove ChatController, enhance MessageSent event with broadcasting capabilities, and update Conversation and Message models for improved relationships. Update API routes for chat operations and adjust CORS settings for broadcasting authentication.

This commit is contained in:
Mekan1206
2026-08-15 16:07:23 +05:00
parent b52b567388
commit ccfffe6173
23 changed files with 425 additions and 198 deletions

View File

@@ -18,6 +18,7 @@ DB_DATABASE=postshop
DB_USERNAME=root
DB_PASSWORD=
# Use `pusher` (Pusher Cloud or Soketi) for live chat. `log` is fine locally without websockets.
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
@@ -46,6 +47,7 @@ AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
# Required when BROADCAST_DRIVER=pusher (Pusher Cloud, or Soketi using the pusher driver)
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=