FilamentF
Filament3y ago
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. Any suggestions?

      Tables\Columns\SelectColumn::make('payment_method')
            ->visible(fn (Payment $record) => $record->deleted_at),
Was this page helpful?