Skip to content

Message User Relationship #16

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

Merged
merged 4 commits into from
Dec 25, 2022
Merged

Message User Relationship #16

merged 4 commits into from
Dec 25, 2022

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