belongsTo(User::class); } public function fromUser(){ return $this->hasOne(User::class,'id','from_user_id'); } }