identifiableName() doesnt work with model User
Fokuslight opened this issue · 1 comments
Fokuslight commented
Hi all, I use version Laravel 8, and all models where I've used the function identifiableName() Ive got a result, but in case with User model, this method doesnt work. I tryied to do dd() inside function
public function identifiableName()
{
dd('here');
return $this->email;
}
So, this was ignored. So I had to make the next actions in Trait:
if ($history->key === 'user_id') {
$history->old_value = User::find($history->old_value)->email;
$history->new_value = User::find($history->new_value)->email;
}
Anybody knows whats the reason?
bLLRR commented
I'm having the same issue....