Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Merklin's avatar

Edit 1 to 1 relation in FIlament not working

I have a hasOne relation of the user model to the UserMeta model. The metadata is stored on one row in the database, with column user_id and the rest columns for the other data.

I have created a Filament relation manager and I can render the data in the View User and Edit User pages.

However, when in the user edit page, if I want to edit the meta data and click the edit button, it starts loading but no form modal is shown.

This is my code:

// User model
public function meta(): HasOne
    {
        return $this->hasOne(UserMeta::class);

    }
// UserMeta model
public function user(): BelongsTo
    {

        return $this->belongsTo(User::class);
    }

I think the problem may come from recordTitleAttribute but I am unsure.

Any ideas on how to solve this?

0 likes
0 replies

Please or to participate in this conversation.