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

Support custom event log #41

Open
henryavila opened this issue Apr 23, 2024 · 1 comment
Open

Support custom event log #41

henryavila opened this issue Apr 23, 2024 · 1 comment

Comments

@henryavila
Copy link

HI, would be great if it can display custom events, the this in spatie/laravel-activitylog doc

activity()
   ->performedOn($anEloquentModel)
   ->causedBy($user)
   ->withProperties(['customProperty' => 'customValue'])
   ->log('Look mum, I logged something');
@tombroucke
Copy link

You can just publish filament-activity-log-views, and make some changes in the view.
$activityItem->getExtraProperty('customProperty') will fetch your custom value

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