© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
xfly

Old value in relationship manager

hi,

how can i get the old value of a TextInput in a Rule?

Forms\Components\TextInput::make('portion')
->rule('lte:' . 100 - $this->getOwnerRecord()->process_shareholders_portion - OLDVALUE)
->numeric()
->live()
->required(),

i tried many ways but i can't get it work. the sum of the portions always needs to be max 100 but needs to check the portions of other shareholders. i get the process_shareholders_portion from the process model casted.

thank you in advance.
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

relationship manager
FilamentFFilament / ❓┊help
2y ago
Many relationship manager?
FilamentFFilament / ❓┊help
2y ago
"Live" Relationship Manager?
FilamentFFilament / ❓┊help
3y ago
Get parent record in Relationship Manager
FilamentFFilament / ❓┊help
3y ago