How to pass record to table row action?
Hi guys, I am trying dynamically create actions for my table rows:
I am still getting this error:
Too few arguments to function App\Filament\Resources\ContractResource\Pages\ListContracts::App\Filament\Resources\ContractResource\Pages\{closure}(), 0 passed in /Users/me/Developer/Sites/leasing/app/Filament/Resources/ContractResource/Pages/ListContracts.php on line 91 and exactly 1 expected
3 Replies
Anyone can help me?
Use
->visible(fn ($record) =>
instead
The records aren't available when your code is evaluatedHi Dennis, thank you. But I need to create these actions dynamically, because there is too many states and I want to create actions based on the next possible transitions, states.