F
Filament7mo ago
adnn

Use a badge text column in ->form?

In my edit and view page i want to display a static item as a badge, is this achievable? Example something identical to this but for the form?
Forms\Components\TextInput::make('platform')
->label('Platform')
->url(fn ($record) => $record->url)
->color(fn (string $state): string => match ($state) {

default => 'gray'
}),
Forms\Components\TextInput::make('platform')
->label('Platform')
->url(fn ($record) => $record->url)
->color(fn (string $state): string => match ($state) {

default => 'gray'
}),
2 Replies
adnn
adnnOP7mo ago
I suppose in relation to this. I have user profile pictures saved, on a view page I want to just show it and on edit allow it to be changed, is this doable?
Dennis Koch
Dennis Koch7mo ago
You probably want a separate infolist.
Want results from more Discord servers?
Add your server