Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

只有在save 的时候才能在数据库中查看到日志 #50

Closed
liucg1995 opened this issue Jan 10, 2017 · 3 comments
Closed

只有在save 的时候才能在数据库中查看到日志 #50

liucg1995 opened this issue Jan 10, 2017 · 3 comments

Comments

@liucg1995
Copy link

当使用insert,update 进行数据操作的时候,不能在数据库查看到日志,只有在save操作的时候,才能在数据库看到日志。如何才能使用 insert update 时,也能在数据库查看到日志

@freekmurze
Copy link
Member

I'm sorry, but I don't speak your language. Could you try asking your question in English?

@liucg1995
Copy link
Author

When using insert, update for data manipulation, can not be viewed in the database log, only in the save operation, in order to see the database log. How to use insert update, you can also view the database log

@freekmurze
Copy link
Member

Here are same examples on how to log model events: https://docs.spatie.be/laravel-activitylog/v1/advanced-usage/logging-model-events

If there's something not working on your end, please post some code snippets that enables me to recreate the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants