Steff
Steff
FFilament
Created by Steff on 7/3/2024 in #❓┊help
Is it possible to handle a description from a related table?
Is it possible to handle a description from a related table? The relationship is there.
Tables\Columns\TextColumn::make('name')
->description(fn(Table_1 $record): string => $record->table_2.field),
Tables\Columns\TextColumn::make('name')
->description(fn(Table_1 $record): string => $record->table_2.field),
( ->table_2.field doesnt work )
7 replies
FFilament
Created by Steff on 6/29/2024 in #❓┊help
Specific partly output of a text column.I know the ->limit(50) method.I need a
I know the ->limit(15) method. But i need another output. E.g. the original value is "A1234567" and I want to output "A67" Something like that: ``` $string = 'A1234567' $string2 = '**' strlen($string) $string3 = $string2($string, 0 , strlen($string) - 3) echo substr($string, 0, 1) . $string3 . substr($string, -2); output: 'A*67' ``` But how in filament. Probably something with formatStateUsing.
18 replies