hasOne(Studio::class, 'id', 'studio_id'); } public function photographer() { return $this->hasOne(Photographer::class, 'user_id', 'id'); } }