TappNetwork / filament-auditing

A Filament plugin for Laravel Auditing package.
76 stars 20 forks source link

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

Open wiwa1978 opened 7 months ago

wiwa1978 commented 7 months ago

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 commented 7 months ago

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