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

Error Call to undefined method App\Models\User::getFilamentName() #29

Open
bitsandgears opened this issue Jul 31, 2024 · 4 comments
Open

Comments

@bitsandgears
Copy link

Installed the plugin and did a change with a user, then let the assigned role for approval check the record. When I click on the row under Approval status, it will give an error "Call to undefined method App\Models\User::getFilamentName()". When commenting out the line in vendor/eightynine/filament-approvals/resources/views/tables/columns/approval-status-column-action-view.blade.php, error is gone.

I found that the getFilamentName might be something coming with a multi tenancy setup, as I found it in the docs here: https://docs.laravel-filament.cn/docs/panels/tenancy/. Now I'm not having this setup for my filament install. Does it mean you need to have a multi tenancy setup ideally?

@tonypartridge
Copy link

What version of filament are you on? add the HasName to the user model from:

vendor/filament/filament/src/Models/Contracts/HasName.php

@ammimounir
Copy link

Did you manage to resolve that issu ?

@lodzax
Copy link

lodzax commented Dec 18, 2024

@tonypartridge, I'm getting this error message when I add the HasName to the User model:
image

@tonypartridge
Copy link

tonypartridge commented Dec 20, 2024 via email

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

4 participants