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

Call to undefined relationship [user] on model XXXXXXX #113

Open
resujentoezequiel opened this issue Jul 12, 2023 · 1 comment
Open

Call to undefined relationship [user] on model XXXXXXX #113

resujentoezequiel opened this issue Jul 12, 2023 · 1 comment

Comments

@resujentoezequiel
Copy link

Good day,

Can I see the content of your user() function in the transaction model?

I want to display the name rather than the ID number in the chart.

image

Thank you

@PovilasKorop
Copy link
Collaborator

@resujentoezequiel from what I remember, it should be just a function user() { return $this->belongsTo(User::class); } relationship

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