Live chat Component and functionality
Hi, I need to implement a live chat functionality on my filament app.
I've CoustomerSupportResource and I want to build Livewire page/component to display the chat tab in Form/Edit Page
The chat should be from user to admin (tow model), not general (never general). I'm wondering what I should go about implementing this?
Have any of you implemented something like this? What would you suggest? I suppose this is more of a Laravel question in general, but as a solo dev it's hard to tell the what best approach is at times.
notes: I have 3 table in DB and I am obligated to it because I'm transferring from the board to Filament.
Any input is appreciated!
3 Replies
note : 3 table structure :
customer_supports and this strucure table :
id
,
user_id
,
admin_id
,
is_user
,
message
,
read
,
created_at
,
updated_at
,
file_name
,
customer_support_chat_id
customer_support_chats:
id
,
user_id
,
admin_id
,
response_at
,
end_at
,
created_at
,
updated_at
customer_support_attachments
id
,
customer_support_id
,
file_name
,
file_path
,
deleted_at
,
created_at
,
updated_at
As you said, it's more Laravel thing than filament, for now the "real-time" related things in filament are only about the notifications system
For Laravel there's a package called Chatify for chatting stuff, and some devs have already tried to integrate it into filament:
https://github.com/199ocero/filachat
GitHub
GitHub - 199ocero/filachat: Filachat is a plugin for integrating re...
Filachat is a plugin for integrating real-time customer support chat into your application. Provides tools for both customer and agent chat interfaces, with features for managing and maintaining ch...