F
Filament14mo ago
Hemith

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
Patrick Boivin14mo ago
->viewData([ ... ]) or I think you can get the record from your view directly with $getRecord()
Hemith
Hemith14mo ago
getRecord works. Thanks alot !