© 2026 Hedgehog Software, LLC

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

Create child entries in RelationManager on view page of parent resource

I have a CreateAction for a RelationManager to a child resource, but it only shows up if a user navigates to the edit page of the parent resource (same with edit and delete actions in the RelationManager). It does not show up on the view page for the parent resource. This means users have to be given permissions to edit the parent resource when they shouldn't be able to do so. Am I missing something to enable adding child entries via the RelationManger from the view page of the parent resource?
Solution
https://filamentphp.com/docs/3.x/panels/resources/relation-managers#read-only-mode

Just use

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

on the relation manager and on view page you can add/edit records
Managing relationships - Panel Builder - Filament
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

How I could use view page of Parent Resource view in RelationManager ViewAction()
FilamentFFilament / ❓┊help
3y ago
RelationManager on View Resource
FilamentFFilament / ❓┊help
2y ago
Passing parent id to child create view
FilamentFFilament / ❓┊help
3y ago
Passing parent model to a child resource's create page
FilamentFFilament / ❓┊help
3y ago