Target Closure not Instantiable

Hi, I've encountered the error stated in the title from this very simple code.
->columns([
\Filament\Tables\Columns\TextColumn::make("denomination"),
\Filament\Tables\Columns\TextColumn::make("phone"),
\Filament\Tables\Columns\TextColumn::make("email"),
\Filament\Tables\Columns\TextColumn::make("p_iva")
->hidden(fn(Closure $get) => $get("p_iva") === null),
])
->columns([
\Filament\Tables\Columns\TextColumn::make("denomination"),
\Filament\Tables\Columns\TextColumn::make("phone"),
\Filament\Tables\Columns\TextColumn::make("email"),
\Filament\Tables\Columns\TextColumn::make("p_iva")
->hidden(fn(Closure $get) => $get("p_iva") === null),
])
Do you know why? Specifically, the error is:
Illuminate \ Contracts \ Container \ BindingResolutionException
PHP 8.2.9
10.20.0
Target [Closure] is not instantiable.
Illuminate \ Contracts \ Container \ BindingResolutionException
PHP 8.2.9
10.20.0
Target [Closure] is not instantiable.
Thanks in advance!
Solution:
in v3 Closure $get not available you need to use ->hidden(fn(\Filament\Forms\Get $get)...
Jump to solution
2 Replies
Solution
Lara Zeus
Lara Zeus16mo ago
in v3 Closure $get not available you need to use ->hidden(fn(\Filament\Forms\Get $get)
giuszeppe
giuszeppeOP16mo ago
Oh thank you!
Want results from more Discord servers?
Add your server