pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
160 stars 27 forks source link

Support custom event log #41

Open henryavila opened 6 months ago

henryavila commented 6 months ago

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 commented 1 month ago

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