Pass current record attributes to custom view.

I want to pass some record data to a custom view of my action. Something like this:
Tables\Actions\Action::make()
->view('test', ['record' => 'here'])
Tables\Actions\Action::make()
->view('test', ['record' => 'here'])
Is is possible? any help is appreciated.
2 Replies
Patrick Boivin
->viewData([ ... ]) or I think you can get the record from your view directly with $getRecord()
Hemith
HemithOP2y ago
getRecord works. Thanks alot !
Want results from more Discord servers?
Add your server