F
Filament10mo ago
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.
No description
Solution:
I got it now, using UserREsource::getUrl()
No description
Jump to solution
1 Reply
Solution
Zen
Zen10mo ago
I got it now, using UserREsource::getUrl()
No description
Want results from more Discord servers?
Add your server