*/ protected $fillable = [ 'body', 'author_id', 'thread_id', 'stickied' ]; /** * The author of this thread. */ public function author() { return $this->belongsTo(User::class, 'author_id'); } public function thread() { return $this->belongsTo(ForumThread::class, 'thread_id'); } }