Skip to content

Conversation

ousid
Copy link
Member

@ousid ousid commented Dec 25, 2022

Adding user relationship, into the Message model, so you can get the user data directly from the message

Example

$message = Message::first();

return $message->user->name // you can get the user data.

@ousid ousid merged commit 006499a into main Dec 25, 2022
@ousid ousid deleted the user-messages-relationship branch April 8, 2024 15:20
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

Successfully merging this pull request may close these issues.

1 participant