F
Filament7mo ago
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), but this dont works in a RelationManager.
2 Replies
Vitor
VitorOP7mo ago
Yeah, thats right. Thx Leandro and sorry for the "stupid" mistake of not seeing it before, I probably passed by it.
Want results from more Discord servers?
Add your server