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)
, but this dont works in a RelationManager.2 Replies
Solution
Yeah, thats right.
Thx Leandro and sorry for the "stupid" mistake of not seeing it before, I probably passed by it.