pxlrbt / filament-activity-log

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

Support custom event log #41

Open henryavila opened 5 months ago

henryavila commented 5 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 3 days ago

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