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?
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:
public function getEmailAttribute()
{
if (is_null($this->identified_at)) {
return null;
}

if($this->attributes['email']) {
return $this->attributes['email'];
}
}
public function getEmailAttribute()
{
if (is_null($this->identified_at)) {
return null;
}

if($this->attributes['email']) {
return $this->attributes['email'];
}
}
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 advance
6 replies