I am using this package for activity logging in laravel I am able to do logging from controller but, I want to do it using Model.
I read this useful information from the official documentation
but, it doesnt store subject id, type and causer id, type. I can store it from controller as
activity()
->causedBy($userModel)
->performedOn($someContentModel)
->log('edited');
How to do this from model? Suggestions are appreciated.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire