If you are talking about logging changes in the database, I would probably just create table triggers in the database.
Here is a post about creating those.
https://tray2.se/posts/using-table-triggers-to-log-changes-in-your-database-tables
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
There are obviously a number of ways to store user activity in the database.
While researching, I came up on a number of options such as: using user-made packages, creating events and listeners, making custom services, and even just manually creating rows on the logs table.
My question is: at least in the Laravel community, what is the most common or accepted way of logging user activity in the database? Thanks in advance!
Please or to participate in this conversation.