diff --git a/src/Resources/RoleResource/RelationManager/UserRelationManager.php b/src/Resources/RoleResource/RelationManager/UserRelationManager.php index 8192399..e2d34e0 100644 --- a/src/Resources/RoleResource/RelationManager/UserRelationManager.php +++ b/src/Resources/RoleResource/RelationManager/UserRelationManager.php @@ -15,7 +15,10 @@ class UserRelationManager extends RelationManager { protected static string $relationship = 'users'; - protected static ?string $recordTitleAttribute = 'name'; + public static function getRecordTitleAttribute(): ?string + { + return config('filament-spatie-roles-permissions.user_name_column'); + } /* * Support changing tab title in RelationManager.