-
This is using filament v3. I am trying to inject my model into the hidden() method on an action group, but it does not seem to resolve the model instance. The form fields works just as expected return $table
->query(Application::query())
->action([
ActionGroup::make([
ActionGroup::make([TextInput('name')])
->hidden(function (Application $application) {
return $application->status === 'rejected'; //this is not resolved. Its just an empty model
})
->icon('heroicon-o-x-circle')
->grouped()
->color('danger'),
]),
]); Does anyone know how to fix this ? |
Beta Was this translation helpful? Give feedback.
Answered by
danharrin
Aug 11, 2023
Replies: 1 comment 4 replies
-
Can you try replacing |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
sinnbeck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you try replacing
Application $application
withActionGroup $group
, and then using$group->getRecord()
? I don't think we're automatically passing in record to closures yet for action groups