PHPackages                             balouch/laravel-audit-log - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. balouch/laravel-audit-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

balouch/laravel-audit-log
=========================

Laravel Audit Log Package with UI

v1.0(3mo ago)01↓90%MITBladePHP ^8.1

Since Mar 26Pushed 3mo agoCompare

[ Source](https://github.com/Irshad-Khan/laravel-audit-log)[ Packagist](https://packagist.org/packages/balouch/laravel-audit-log)[ RSS](/packages/balouch-laravel-audit-log/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Laravel Audit Log Package
=========================

[](#laravel-audit-log-package)

A comprehensive Laravel audit log package that automatically tracks model changes and provides a beautiful UI for viewing audit trails.

Features
--------

[](#features)

- **Automatic Audit Logging**: Simply add the `Auditable` trait to any model to start tracking changes
- **Beautiful UI**: Modern, responsive interface for viewing audit logs with filtering and search
- **Detailed Change Tracking**: Tracks old and new values for all model changes
- **User &amp; IP Tracking**: Records which user made changes and from which IP address
- **Bulk Operations**: Delete multiple audit logs at once
- **Configurable**: Easy configuration options for excluding sensitive fields
- **Laravel 12 Compatible**: Built for the latest Laravel version

Installation
------------

[](#installation)

1. Install the package via Composer:

```
composer require balouch/laravel-audit-log
```

2. Publish the migration file:

```
php artisan vendor:publish --tag="audit-log-migrations"
```

3. Run the migration:

```
php artisan migrate
```

4. Publish the configuration file (optional):

```
php artisan vendor:publish --tag="audit-log-config"
```

5. Publish the views (optional, if you want to customize the UI):

```
php artisan vendor:publish --tag="audit-log-views"
```

5. Publish the routes (optional, if you want to customize the routes):

```
php artisan vendor:publish --tag="audit-log-routes"
```

Usage
-----

[](#usage)

### Basic Setup

[](#basic-setup)

Add the `Auditable` trait to any model you want to track:

```
