How to return subject when deleted with laravel spatie activity log

923 Views Asked by At

I'm using laravel-activitylog. When a record is deleted the $activity->subject is null. On updated and created the $activity->subject returns the model object.

Is there any way I can return the subject on deleted too?

1

There are 1 best solutions below

2
On

you can use soft-delete where actual record should not be deleted and you can able to pass the deleted object