© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
setiawanh

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')
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?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Missing create button on relationship manager
FilamentFFilament / ❓┊help
3y ago
Show dedicated resource view for a relationship
FilamentFFilament / ❓┊help
3y ago
Relationship manager does not have Create Action
FilamentFFilament / ❓┊help
13mo ago
Go to record on "view" in Relationship managed resource.
FilamentFFilament / ❓┊help
3y ago