© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
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
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
RelationManager inside modal/sliderOver
F
Filament / ❓┊help
2y ago
FIlaments Import inside RelationManager
F
Filament / ❓┊help
3y ago
Accessing the current model inside custom validation rule
F
Filament / ❓┊help
3y ago