Help with accessing a record in Filament relation manager
Hey Guys,
A quick question can someone tell me how to i access the current record in a table that is displayed in the relation managers. Can't seem to find it and i need to perform a authorization check on a custom action
8 Replies
Did you try with ?
yes but then i get my master record
in my case the changelist
but what i need is the issue record that is attached through the hasMany
Something like this?
let me try
Im wondering how the handling should be in the action logic
because i hide it here. But can the user still be perform the action logic?
I think Filament completely removes the action logic when hidden.
See here https://filamentphp.com/docs/3.x/actions/trigger-button#authorization
same for the
->visible()
rightvisible() is just the inverse method. But is registered on its own property within the component.
ill think i go for the visible option then
but anyway
THANKS!