belongsTo(User::class,'user_id'); } public function user_data() { return $this->hasOne(UserDetail::class,'user_id','user_id'); } }