© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
vas

Accessing resource from resource manager link

hi i have an OrderResource and an OrdersRelationManager
the OrderResource has a view page that is displayed when clicked
i would like from the table view when i click the order from the relation manager view to take me to the actual OrderResource view page
Any tips on how to achieve this ? thanks
class OrdersRelationManager extends RelationManager
{
    protected static string $relationship = 'orders';

    public function form(Form $form): Form
    {
        return OrderResource::form($form);
    }

    public function table(Table $table): Table
    {
        return OrderResource::table($table);
    }

    public function isReadOnly(): bool
    {
        return false;
    }

    public function canCreate(): bool
    {
        return false;
    }
class OrdersRelationManager extends RelationManager
{
    protected static string $relationship = 'orders';

    public function form(Form $form): Form
    {
        return OrderResource::form($form);
    }

    public function table(Table $table): Table
    {
        return OrderResource::table($table);
    }

    public function isReadOnly(): bool
    {
        return false;
    }

    public function canCreate(): bool
    {
        return false;
    }
Solution
                    ViewAction::make()
                    ->url(function ($record) {
                        return route('filament.admin.resources.orders.view', $record);
                    }),
                    ViewAction::make()
                    ->url(function ($record) {
                        return route('filament.admin.resources.orders.view', $record);
                    }),
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

Resource manager
FilamentFFilament / ❓┊help
3y ago
Globally Accessing Current Resource
FilamentFFilament / ❓┊help
2y ago
Emit Event from Resource to Relation Manager
FilamentFFilament / ❓┊help
3y ago
Accessing parent resource when creating nested resource
FilamentFFilament / ❓┊help
6mo ago