belongsTo(User::class,'user_id','id'); } public function to_user() { return $this->belongsTo(User::class,'to_uid','id'); } }