Custom row classes

Hi everyone, i'm trying to use this code : recordClasses(fn (Model $record) => match ($record->is_confidential) {
true => 'bg-red-500',
default => null,
})
but that is not working and without errors.
thank you
Was this page helpful?