© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Zen

How I could use view page of Parent Resource view in RelationManager ViewAction()

I added url() to the ViewAction like this.
Tables\Actions\ViewAction::make()->url(fn (Model $record): string =>
route(
'filament.app.resources.user.users.view',
['record' => $record, 'tenant' => $record->team?->id]
))
It works but I had to stick with a route name 'filament.app.resources.user.users.view' as above. However, I this view should be able to view in different panels. How I could get the panel name in this RelationManager class. Or is there any way I can make this uses the same UserResource\Pages\ViewUser for this.
get_right_view.png
Solution
I got it now, using UserREsource::getUrl()
image.png
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

Click ViewAction in RelationManager to view resource
FilamentFFilament / ❓┊help
14mo ago
Create child entries in RelationManager on view page of parent resource
FilamentFFilament / ❓┊help
2y ago
RelationManager on View Resource
FilamentFFilament / ❓┊help
2y ago
Action inside Resource ViewAction blade view
FilamentFFilament / ❓┊help
3y ago