How to access Model $record when using ->visible() or ->hidden()?

This is not working

TextColumn::make('email_verified')
    ->visible(fn(User $record) => $record->verified()),


i am getting this error:

App\Livewire\Portal\ManageUsers::App\Livewire\Portal\{closure}(): Argument #1 ($record) must be of type App\Models\User, null given, called in /Users/vahnmarty/Projects/mysi-v2/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Was this page helpful?