Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to specify columns in chat participants #319

Open
greatsami opened this issue May 9, 2023 · 1 comment
Open

how to specify columns in chat participants #319

greatsami opened this issue May 9, 2023 · 1 comment

Comments

@greatsami
Copy link

Hi

I setup the package, and everything is OK.
my question in route:
GET|HEAD chat/conversations/{id}/participants .................................. conversations.participation.index › Musonza\Chat › ConversationParticipationController@index

in Vue DevTools it show all the data of users like:

address:"5697 Murazik Motorway\nWilberton, MA 21589"
bio:"Aut et sit ea ex impedit sequi dolores. Qui dolores sit eum atque eum voluptates animi. Odit itaque commodi exercitationem adipisci."
birth_day:"1983-02-13"
city_id:178
country_id:95
created_at:"2023-05-03T12:38:14.000000Z"
deleted_at:null
email:"sami@gmail.com"
email_verified_at:"2023-05-03T12:38:14.000000Z"
gender:"male"
id:1
locale:"en"
mobile:"966123456789"
name:"Sami Mansour"
participation:Array[2]
settings:null
status:1
timezone:"Asia/Riyadh"
updated_at:"2023-05-03T12:38:14.000000Z"
user_image:"unknown.png"

I need to show id, name, username, user_image only, How I can do that?

@OpneMind
Copy link

OpneMind commented Mar 7, 2024

Hi
In config (musonza_chat.php):

'sender_fields_whitelist' => ['id', 'name'],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants