PHPackages                             brachiosx/laravel-audit-logger - 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. brachiosx/laravel-audit-logger

ActiveLibrary

brachiosx/laravel-audit-logger
==============================

Provide application in auditing model changes.

v1.1.0(3y ago)26[3 PRs](https://github.com/BrachiosX/laravel-audit-logger/pulls)MITPHPPHP ^8.1

Since Nov 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/BrachiosX/laravel-audit-logger)[ Packagist](https://packagist.org/packages/brachiosx/laravel-audit-logger)[ Docs](https://github.com/brachiosx/laravel-audit-logger)[ RSS](/packages/brachiosx-laravel-audit-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (10)Used By (0)

Laravel Audit Log module
========================

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/e076247fca3eb5db16666dd69516f4b4b74880ea35e2000d944b67b68cb5a31a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272616368696f73782f6c61726176656c2d61756469742d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brachiosx/laravel-audit-logger)[![GitHub Tests Action Status](https://camo.githubusercontent.com/42503ca65db25897ba7f7349926e5345e127b6afd66efaf12b19967a73894cb7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6272616368696f73782f6c61726176656c2d61756469742d6c6f676765722f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/brachiosx/laravel-audit-logger/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bc4562cd6215322305354228072b337dc882196095ff40e60880d5980f226bd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6272616368696f73782f6c61726176656c2d61756469742d6c6f676765722f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/brachiosx/laravel-audit-logger/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6bb15debe0a56b437afa3898339ae00f7c2c76854a0880a7fb96d51afdcad48b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272616368696f73782f6c61726176656c2d61756469742d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brachiosx/laravel-audit-logger)

Simple module to apply audit-logging feature in laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require brachiosx/laravel-audit-logger
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-audit-logger-migrations"
php artisan migrate
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    'database' => [
        'connection' => '',             // table connection
        'table_name' => 'laravel_audit_logger_table'       // table name for audit-log
    ],
    'ignore_fields' => ['updated_at'],                  // default ignore fields to skip log
];
```

Usage
-----

[](#usage)

use exposed trait `HasAuditLog` in desired laravel model class.

```
