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'])

Is is possible? any help is appreciated.
Was this page helpful?