© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
11 replies
vahnmarty

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

This is not working

TextColumn::make('email_verified')
    ->visible(fn(User $record) => $record->verified()),
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
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to access $record in a ->visible() method?
FilamentFFilament / ❓┊help
15mo ago
Table column record parameter for visible & hidden methods
FilamentFFilament / ❓┊help
3y ago
Actions still visible when setting ->hidden()
FilamentFFilament / ❓┊help
3y ago
Role in hidden/visible
FilamentFFilament / ❓┊help
2y ago