Download the PHP package rembon/laravel-auditor without Composer
On this page you can find all versions of the php package rembon/laravel-auditor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rembon/laravel-auditor
More information about rembon/laravel-auditor
Files in rembon/laravel-auditor
Package laravel-auditor
Short Description Laravel Eloquent Model Auditor Without Getting Sweat
License MIT
Informations about the package 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
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
- 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 ?
- Keeping track of user actions (responsibility)
- Third party integrations (request and response)
- Discover malicious activities in your applications
- Debugging purposes
How to Install
Step 1: Install the Package via Composer
Run the following command in your terminal to install the package:
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
:
Use these library on top of your Event Service Provider Files app/Providers/EventServiceProvider.php
:
Then replace these code into app/Providers/EventServiceProvider.php
Step 3: Publish the Configuration Files
Run the following Artisan commands to publish the package configuration:
Step 4: Running the Migration Files
then run the migration:
if you want to migrate the specific migration, run migration below:
and
Step 5: Optional
Commands
Lastly, run the following optional commands:
if you are using uuid, just check these file ..._create_audits_table.php
below:
How to Use ?
Simple, Just put our Auditable Traits into your models
Check the view on: /auditor