Skip to content

Implement Auditing System for User and System Activities #7

@ammodev

Description

@ammodev

Is your feature request related to a problem?

Currently, there is no way to track changes made to critical data, user actions, or system events. This makes it difficult to monitor modifications, detect unauthorized changes, and maintain accountability. An auditing system would provide a clear history of who did what and when.

Describe the solution you'd like.

A robust auditing system integrated with Laravel 11+, using a package like Laravel Auditing or Spatie Laravel Activity Log. Features should include:

  • Logging changes to models, including old and new values.
  • Storing user activity (e.g., logins, role changes, data modifications).
  • Support for database-driven logging with an easy-to-query structure.
  • Ability to filter logs based on user, date, or action type.
  • Optional soft-delete tracking and recovery options.

Describe alternatives you've considered.

  • Manually implementing event listeners and logging, but this is time-consuming and less maintainable.
  • Using Laravel’s default updated_at timestamps, but this only tracks modifications without details.
  • Relying on external logging services, but this adds dependencies and may not store detailed model changes.

Other

A UI to view logs within the admin panel would improve usability, allowing admins to search and filter audit records easily.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions