Jonjie
2 months ago
232
0
Laravel

Spatie activity log custom field in activity_log table

Posted 2 months ago by Jonjie

Is there anyway I can customize activity_log table. And just by adding the LogsActivity trait inside the model instead of using activity()->log() approach?

I know I can achieve it using the activity()->log() approach. But what I want is just to use the LogsActivity trait so I'm not going to do it manually.

Package

https://github.com/spatie/laravel-activitylog

[SOLVED]

https://spatie.be/docs/laravel-activitylog/v3/advanced-usage/logging-model-events#tap-activity-before-logged-from-event

Please sign in or create an account to participate in this conversation.