Skip to content

Commit

Permalink
recordTitle fixed for user_name_column (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahya077 authored Apr 8, 2024
1 parent e34ad95 commit 78bfefa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 78bfefa

Please sign in to comment.