Get Name Of Table Column?

I think this is used to get data on the Table Column. From documentation
use Filament\Tables\Columns\TextColumn;
 
TextColumn::make('title')
    ->description(fn (Post $record): string => $record->description)


But i want little bit diffrent functionallity this is the code
 Tables\Columns\ImageColumn::make('profile_photo')
                    ->circular()->label('')->extraImgAttributes(['loading' => 'lazy'])->height(30)**->defaultImageUrl(url('https://ui-avatars.com/api/?name=' . 'full' . '&color=ffffff&background=5a51ec'))**,
                Tables\Columns\TextColumn::make('name')
                    ->numeric()
                    ->sortable()->searchable(),

Where i have name of user and Profile photo field
so i want that if user has no profile photo he will get defaultImageUrl
->defaultImageUrl(url('https://ui-avatars.com/api/?name=' . ' USER NAME' . '&color=ffffff&background=5a51ec'))

and i want the name of user insted of USER NAME
How can i get user name there
thank you in advance ❤️.
Solution
Like this?
->defaultImageUrl(fn (User $record) => 'https://ui-avatars.com/api/?name=' . $user->name. '&color=ffffff&background=5a51ec')
Was this page helpful?