belongsTo(User::class, 'from_id'); } public function toUser() { return $this->belongsTo(User::class, 'to_id'); } }