FilamentF
Filament14mo ago
emil

Injecting $record and using ->when

$record becomes an instance of TextColumn instead of Model when using the ->when condition.

Is this expected behaviour?
TextColumn::make('state')
->when(fn($record) => dd($record))
Was this page helpful?