I need to display each user's unique photo in a chat room. Laravel Jetstream
Getting user message
{{ message.message}}
Initially I had, but realized it only gets the photo for the current logged in user.
:src="$page.props.user.profile_photo_url
I need to define a has one relationship and call something like:
Get user id which lines up with the user account
{{ message.user_id}}
Then get the profile photo location from user table column but I can't seem to get it working
{{ user->where('id','=',message.user_id)->value(photo_location) }}