© 2026 Hedgehog Software, LLC

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

Get current model inside relationManager

Has a way to get the current model inside a RelationManager?

My use case:
I have a UserResource with a separate class called UserForm (with the form method to reuse);

A AnotherResource with UserRelationManager, and inside the manager im using the same UserForm;

A password field with
->visible(fn ($livewire) => $livewire instanceof CreateUser)
->visible(fn ($livewire) => $livewire instanceof CreateUser)
, but this dont works in a RelationManager.
Solution
Do you mean, this?
https://filamentphp.com/docs/3.x/panels/resources/relation-managers/#accessing-the-relationships-owner-record
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

RelationManager inside modal/sliderOver
FilamentFFilament / ❓┊help
2y ago
FIlaments Import inside RelationManager
FilamentFFilament / ❓┊help
3y ago
Accessing the current model inside custom validation rule
FilamentFFilament / ❓┊help
3y ago