PHPackages                             dcodegroup/activity-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. dcodegroup/activity-log

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

dcodegroup/activity-log
=======================

Simple package which dcode uses to manage activity logs

4.0.3(3w ago)4133.0k↓67.8%MITPHPPHP ^8.3CI passing

Since Jan 17Pushed 1w ago5 watchersCompare

[ Source](https://github.com/DCODE-GROUP/laravel-activity-log)[ Packagist](https://packagist.org/packages/dcodegroup/activity-log)[ RSS](/packages/dcodegroup-activity-log/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (44)Versions (92)Used By (0)

Laravel Activity Log
====================

[](#laravel-activity-log)

The `dcodegroup/activity-log` package provides a simple and unified approach to track and record activity / interactions against your Laravel models (and relations). Capture changes, updates, and user interactions to enhance transparency and auditing in your application in a centralised and consistent approach.

[![Latest Version on Packagist](https://camo.githubusercontent.com/acc8824da9ec6dc86c4b6a2a170acfaa0daba4f0a16e7944e79059eeedd85566/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64636f646567726f75702f61637469766974792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dcodegroup/activity-log)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4d190ca951188e651fc90b2f51e8bcf4842e1db8a59cd34a58e5d4990e97cc19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f44434f44452d47524f55502f6c61726176656c2d61637469766974792d6c6f672f63692e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/DCODE-GROUP/laravel-activity-log/actions/worflows/ci.yml/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/5b8f22906a8c11ef41c4a1dc052f87dec6dd45efa4b9628bfeb12e2d4394bf58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64636f646567726f75702f61637469766974792d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dcodegroup/activity-log)

Compatibility
-------------

[](#compatibility)

Package versionPHPLaravel4.0.1+ / 4.x`^8.3``^10.10`, `^11`, `^12`, `^13`4.0.0`^8.3``^11`, `^12`, `^13`3.x`^8.3``^11`, `^12`, `^13`2.x`^8.2``^10.2`, `^11`, `^12` (later 2.x)1.1.x`^8.2` / `^8.3``^10`, `^11`1.0.x`^8.0`–`^8.2``^7`–`^10`Upgrading to 4.x? See [UPGRADE.md](./UPGRADE.md) for the step-by-step file changes.

Update note
-----------

[](#update-note)

Since `version 1.1.1` we are no longer need to use observers to listen for changes from the model. `bootActivityLoggable` in `ActivityLoggable` trait solved that. Make sure to remove duplicate observers before updating

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

[](#installation)

#### Installation (PHP package only)

[](#installation-php-package-only)

This package is a **PHP Laravel package** and no longer ships Vue/JS/CSS. Frontend components live in a separate package (install with pnpm):

- Package: [`@dcodegroup-au/vue-activity-log`](https://www.npmjs.com/package/@dcodegroup-au/vue-activity-log)
- GitHub: [DCODE-GROUP/laravel-activity-log-vue](https://github.com/DCODE-GROUP/laravel-activity-log-vue)

Install the backend via Composer:

```
composer require dcodegroup/activity-log
```

Run the installer and migrations:

```
php artisan activity-log:install
php artisan migrate
```

If you need the UI, install the Vue package and follow its README (or the [4.x upgrade guide](./UPGRADE.md) if migrating from 3.x).

User Model
----------

[](#user-model)

Add the following contract to the `User` model.

```
