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