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

3.0.1(2w ago)4130.4k↓67.4%MITJavaScriptPHP ^8.3CI passing

Since Jan 17Pushed 2w 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 3d ago

READMEChangelog (10)Dependencies (33)Versions (86)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)

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)

#### Add the following to your package.json file:

[](#add-the-following-to-your-packagejson-file)

```
"dependencies": {
   ...
    "floating-vue": "^5.2.2",
    "vue-markdown-render": "^2.1.1",
    "@dcodegroup/vue-mention": "^0.0.2",
    "@heroicons/vue": "^2.2.0",
}
```

#### PHP

[](#php)

You can install the package via composer:

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

Then run the install command.

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

Run the migrations

```
php artisan migrate
```

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

[](#user-model)

Add the following contract to the `User` model.

```
