Skip to content

Log username in a table on a webpage #898

Answered by Gummibeer
JR-Vermeer asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, you can use the causer relationship.

$activities = $poster->activities->load('causer');

foreach($activities as $activity) {
    echo $activity->causer->name;
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JR-Vermeer
Comment options

@Gummibeer
Comment options

@JR-Vermeer
Comment options

@Gummibeer
Comment options

Answer selected by Gummibeer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants