SyntaxFix
Write A Post
Hire A Developer
Questions
Change your model to specify what columns you want selected:
public function user() { return $this->belongs_to('User')->select(array('id', 'username')); }
And don't forget to include the column you're joining on.