belongsTo(Viewer::class, 'viewer_id'); } public function otherViewer(){ return $this->belongsTo(Viewer::class, 'other_viewer_id'); } public function task(){ return $this->belongsTo(Task::class, 'task_id'); } }