Pass record to infolist from action

I have a table view action that has a slideover. I'm passing it an info list. I can't seem to pass the current record over.
I want to show/hide a button when there is a relationship.
How do I pass the current record to the infolist

Action::make()->infolist([
entries.....
if(record.doesntHave('relationship')->get()) show action button to create the missing relation ship.
])->slideover()
Was this page helpful?