Action button in View Resource to Show Create Popup based on Relationship Manager

I have an Employee resource with work_histories in relationship manager.

I want to have an action button in the View Employee Resource which when click, will open the popup that is similar to the form for creating new work history in the relationship manager.

What should I put in the URL / function when I create Action::make() ?

Thanks!
Solution
@setiawanh The URL for the resource of WorkHistoryResource would be WorkHistoryResource::getUrl('create') but as I understand you don't need the URL (and you may not even have a separate resource), you need to open the create form, so that is not the same, that wouldn't work.

Can't you just show Relationship Manager in the View Employee Resource and it would contain that button?
Was this page helpful?