How to ignore the mutator and get the original value of a property?
I have a user model that has a getEmailAttribute that perform mutations to the user emails, how can display and modify the original email attribute that is saved in the database and basically ignore the mutator.
Same as what getRawOriginal do.
this is what i have on my model:
and this is what i have on the UserResource table
Tables\Columns\TextColumn::make('email')->searchable(),
but it is not displayed since identified_at
is null
thanks in advanceSolution:Jump to solution
okay solved it for the edit 🥳
```php
->formatStateUsing(function (Model $record): string {
return $record->getRawOriginal('email');
})...
2 Replies