Geo
Geo
FFilament
Created by Geo on 4/6/2024 in #❓┊help
How to ignore the mutator and get the original value of a property?
okay solved it for the edit 🥳
->formatStateUsing(function (Model $record): string {
return $record->getRawOriginal('email');
})
->formatStateUsing(function (Model $record): string {
return $record->getRawOriginal('email');
})
6 replies
FFilament
Created by Geo on 4/6/2024 in #❓┊help
How to ignore the mutator and get the original value of a property?
on view the following worked
Infolists\Components\TextEntry::make('email')
->state(function (Model $record): string {
return $record->getRawOriginal('email');
}),
Infolists\Components\TextEntry::make('email')
->state(function (Model $record): string {
return $record->getRawOriginal('email');
}),
Still struggling with the edit form
6 replies
FFilament
Created by Geo on 4/6/2024 in #❓┊help
How to ignore the mutator and get the original value of a property?
the above worked only on tables but not of forms or view
6 replies
FFilament
Created by Geo on 4/6/2024 in #❓┊help
How to ignore the mutator and get the original value of a property?
One way to solve it is using
->getStateUsing(fn ($record) => $record->getRawOriginal('email'))
->getStateUsing(fn ($record) => $record->getRawOriginal('email'))
is this the only way ?
6 replies