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 method App\Models\User::audits() #18

Open
wiwa1978 opened this issue Dec 3, 2023 · 1 comment
Open

Call to undefined method App\Models\User::audits() #18

wiwa1978 opened this issue Dec 3, 2023 · 1 comment

Comments

@wiwa1978
Copy link

wiwa1978 commented Dec 3, 2023

Just installed this Filament plugin and followed the instructions. When I add it to the getRelations() array and I refresh the page I do get the follow error:

Call to undefined method App\Models\User::audits()

Filament: 3.0.37
Laravel: 10.10

@swilla
Copy link
Member

swilla commented Dec 4, 2023

Did you following these instructiions? https://laravel-auditing.com/guide/installation.html

You also need to make sure you are putting the trait on your model:
https://laravel-auditing.com/guide/model-setup.html

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