Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identifiableName() doesnt work with model User #389

Open
Fokuslight opened this issue Jan 29, 2021 · 1 comment
Open

identifiableName() doesnt work with model User #389

Fokuslight opened this issue Jan 29, 2021 · 1 comment

Comments

@Fokuslight
Copy link

Fokuslight commented Jan 29, 2021

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
Copy link

bLLRR commented Jun 8, 2022

I'm having the same issue....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants