PHPackages                             rembon/laravel-auditor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rembon/laravel-auditor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rembon/laravel-auditor
======================

Laravel Eloquent Model Auditor Without Getting Sweat

v2.0.0(1y ago)328MITBlade

Since Jun 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Rembonnn/laravel-auditor)[ Packagist](https://packagist.org/packages/rembon/laravel-auditor)[ RSS](/packages/rembon-laravel-auditor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (3)Used By (0)

Laravel Auditor
===============

[](#laravel-auditor)

The Laravel Auditing package is a comprehensive auditing solution for Laravel applications. It provides a way to track changes made to your models, enabling you to maintain a detailed record of data modifications

What is Laravel Auditor
-----------------------

[](#what-is-laravel-auditor)

The Laravel Auditing package is designed to seamlessly integrate with your Laravel application, offering a robust and flexible solution for auditing your Eloquent models. It records every change made to your models, storing the old and new values of attributes, the user responsible for the changes, and timestamps. This allows you to maintain a detailed audit trail and ensures data integrity and accountability.

The package is highly customizable, enabling you to define which models and attributes should be audited, specify the storage location for audit logs, and configure how audits are queried and displayed. Additionally, it supports broadcasting audit events, which can be useful for triggering real-time notifications or other actions in response to data changes.

By using Laravel Auditing, you can enhance the transparency and reliability of your application, making it easier to debug issues, understand user actions, and maintain compliance with regulatory requirements.

Key Features
------------

[](#key-features)

- Keeping track of user actions
- Keeping track of what the user sees
- Keeping track of system changes
- Keeping track of databases

When to use Laravel Auditor ?
-----------------------------

[](#when-to-use-laravel-auditor-)

- Keeping track of user actions (responsibility)
- Third party integrations (request and response)
- Discover malicious activities in your applications
- Debugging purposes

How to Install
--------------

[](#how-to-install)

### Step 1: Install the Package via Composer

[](#step-1-install-the-package-via-composer)

Run the following command in your terminal to install the package:

```
composer require rembon/laravel-auditor
```

### Step 2: Register the Service Provider

[](#step-2-register-the-service-provider)

Once the package is successfully installed, you need to register the service provider and publish the assets. Add the service provider to the providers array in `config/app.php`:

```
'providers' => [
    /*
    * Laravel Framework Service Providers...
    */
    ...

    /*
    * Package Service Providers...
    */
    \Rembon\LaravelAuditor\LaravelAuditorServiceProvider::class,

    /*
    * Application Service Providers...
    */
    ...
],
```

Use these library on top of your Event Service Provider Files `app/Providers/EventServiceProvider.php`:

```
