Implement chat support functionality: update .env.example for Reverb integration, enhance ChatController with support conversation methods, and modify Conversation model for improved chat handling. Add middleware for chat operator checks and update broadcasting configuration for Reverb.

This commit is contained in:
Mekan1206
2026-08-15 17:48:39 +05:00
parent ccfffe6173
commit da530f6b36
21 changed files with 2034 additions and 39 deletions

17
config/chat.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Support user
|--------------------------------------------------------------------------
|
| Storefront chat always opens a 1:1 conversation with this user. Nova
| staff (admin / manager / direktor) operate this inbox on their behalf.
|
*/
'support_user_id' => (int) env('CHAT_SUPPORT_USER_ID', 0),
];