pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
144 stars 25 forks source link

Call to undefined method App\Models\User::activities() #31

Closed wiwa1978 closed 9 months ago

wiwa1978 commented 10 months ago

I always get this error message. I have created the ListUserActivities under Filament\Resource\UserResource\Pages. In the UserResource I registered the page and added an action to the table. I see the Activities link next to each user but when I click on it, I always get the Call to undefined method App\Models\User::activities() error.

pxlrbt commented 10 months ago

@wiwa1978 Users don't have activities, they have ->actions(). Activities are on the models the user edits (unless you have LogsActivity on your user model, too).

bo3bdo commented 10 months ago

Me too

pxlrbt commented 10 months ago

You too what? 😅

bo3bdo commented 9 months ago

Oh, sorry the database was empty

I installed the package and seeded the base and all good now thank you

pxlrbt commented 9 months ago

Since there is no reaction from @wiwa1978, and I don't think this is an issue, I'll close this now.