© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
14 replies
daar

Hide SelectColumn based on soft delete status

I want to hide a column, as per the title. See the code below. This has worked before within the project, but I in this case get the error:
Argument #1 ($record) must be of type App\Models\Payment, null given
Argument #1 ($record) must be of type App\Models\Payment, null given
. Any suggestions?

      Tables\Columns\SelectColumn::make('payment_method')
            ->visible(fn (Payment $record) => $record->deleted_at),
      Tables\Columns\SelectColumn::make('payment_method')
            ->visible(fn (Payment $record) => $record->deleted_at),
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

Conditionally hide SelectColumn based on email domain
FilamentFFilament / ❓┊help
16mo ago
SelectColumn give options based on record
FilamentFFilament / ❓┊help
3y ago
Repeater Soft-Delete
FilamentFFilament / ❓┊help
2y ago
Hide a resource widget based on the resource status
FilamentFFilament / ❓┊help
3y ago