hasOne (Activity::class, "id", "activity_id"); } public function get_actor () { return $this->hasOne (Actor::class, "id", "actor_id"); } public function attachments () { return $this->hasMany (NoteAttachment::class); } }