© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
9 replies
Pablo Torres

Attempt to read property "model" on null.

I have a table that has a column "Briefcase" to show if the record (Business) belongs to a Briefcase.
I'm implementing "->tooltip" to show to which User's Briefcase the Business belongs to.
Tables\Columns\TextColumn::make('briefcase.user.name')
    ->label('Briefcase')
    ->tooltip(fn (Business $record): string => "Business in " . $record->briefcase->user->name . "'s Briefcase"),
Tables\Columns\TextColumn::make('briefcase.user.name')
    ->label('Briefcase')
    ->tooltip(fn (Business $record): string => "Business in " . $record->briefcase->user->name . "'s Briefcase"),

The above "tooltip" code fails when one business is not allocated to any Briefcase,
I get:
Attempt to read property "user" on null
Attempt to read property "user" on null

Please, any ideas how can I fix it?
Thanks.
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

Attempt to read property "budget" on null
FilamentFFilament / ❓┊help
3y ago
Attempt to read property "budget" on null
FilamentFFilament / ❓┊help
3y ago
`Attempt to read property "form" on null` error in test
FilamentFFilament / ❓┊help
3y ago
SpatieMediaLibraryImageEntry error Attempt to read property "media" on null on RepeaterEntry
FilamentFFilament / ❓┊help
3y ago