hasOne(DwbsUser::class,'id','agent_id'); } public function user(){ return $this->hasOne(User::class,'id','user_id'); } }