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

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

tallesairan/activity-log
========================

Activity Log for Backpack

1.2(2y ago)04MITPHP

Since Aug 9Pushed 2y agoCompare

[ Source](https://github.com/tallesairan/activity-log)[ Packagist](https://packagist.org/packages/tallesairan/activity-log)[ Docs](https://github.com/backpack/activity-log)[ RSS](/packages/tallesairan-activity-log/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Activity Log
============

[](#activity-log)

[![The Whole Fruit Manifesto](https://camo.githubusercontent.com/9fc65ecdd629dc33c369f73e0bc051740f01647367c131a574577fea2a5678bb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f77726974696e672532307374616e646172642d74686525323077686f6c6525323066727569742d627269676874677265656e)](https://github.com/the-whole-fruit/manifesto)

This package adds a web interface that shows the activity log for projects that use [Backpack for Laravel](https://backpackforlaravel.com/). It relies on Spatie `laravel-activitylog` package, if you need further information on how to use it, head to .

How does it all work? Well:

- when a change happens to an Eloquent model, the Spatie package will make a note of it in the database;
- this package adds a web interface, so the admin can see the changes (aka activity log);

Preview
-------

[](#preview)

[![](https://user-images.githubusercontent.com/1032474/205863022-827f3248-a9f3-4d05-896f-5fa7a40227be.gif)](https://user-images.githubusercontent.com/1032474/205863022-827f3248-a9f3-4d05-896f-5fa7a40227be.gif)

Don't belive how simple it is to use? Go ahead, try it right now, in [our online demo](https://demo.backpackforlaravel.com/admin/activity-log). Edit some other entities, and check the [activity logs](https://demo.backpackforlaravel.com/admin/activity-log) page to see the changes.

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

[](#installation)

> Before official release, you need to add this to your `composer.json`'s `repositories` section before you can install it, because the package hasn't been submitted to Packagist yet. This step should be removed before official release.

```
    {
        "type": "vcs",
        "url": "git@github.com:Laravel-Backpack/activity-log.git"
    }

```

In your Laravel + Backpack project:

```
# install the package
composer require backpack/activity-log

# publish and run the migrations
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"
php artisan migrate

# optional: publish the config file
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-config"

# optional: add a sidebar entry item for the Activity Logs page
php artisan backpack:add-sidebar-content " Activity Logs"
```

Usage
-----

[](#usage)

Inside all the Models you want to be logged, add the usage of the `LogsActivity` Trait:

```
