TextColumn relation first item
->columns([
Tables\Columns\TextColumn::make('users')
])
->filters([
how can i get first item in TextColumn ??
4 Replies
how the query should be ??
the $state return string
you can use $record
->formatStateUsing(fn ($record): string => $record->users[0]->name ?? '')
it work , thank you .