Closed tvaughan73 closed 8 months ago
The expected behavior is to not log that, because activity-log is only able to log model events automatically and not eloquent queries
SomeModel::where(['id' => $id])->delete();
This is an Eloquent Builder and it's expected to not be logged
You can use activity() helper to log custom events. I think the issue can be safely closed.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Describe the bug When deleting a record, depending on the method used, the delete is not logged. Using the destroy method results in the log working as normal. Using the delete method nothing is logged.
To Reproduce Things needed to reproduce the error.
Using delete method will not result in delete being logged.
This works as expected:
Expected behavior Log should be made when delete method is used.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information)
Additional context Add any other context about the problem here.
Exception The thrown exception message. No error is thrown.
Stack Trace The full stack trace of the thrown exception.