PHPackages                             workup/nova-activitylog - 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. workup/nova-activitylog

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

workup/nova-activitylog
=======================

A tool to activity logger to monitor the users of your Laravel Nova.

v0.4.1.002(2y ago)01.3kMITPHP

Since Oct 14Pushed 2y agoCompare

[ Source](https://github.com/workupsrl/nova-activitylog)[ Packagist](https://packagist.org/packages/workup/nova-activitylog)[ RSS](/packages/workup-nova-activitylog/feed)WikiDiscussions master Synced 1w ago

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

Nova tool for activity log
==========================

[](#nova-tool-for-activity-log)

[![StyleCI](https://camo.githubusercontent.com/25300649f18ae8f47c9d6e47c30175a131ed60bf474b811380e2dd3998828d8f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137343330343239382f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/174304298)[![Packagist Downloads](https://camo.githubusercontent.com/6f61e9f7c1559673e955c3e2302c143d6aff0419f8bd8cd86844d04a9636dd5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f6c656368656e2f6e6f76612d61637469766974796c6f67)](https://packagist.org/packages/bolechen/nova-activitylog)[![Packagist Version](https://camo.githubusercontent.com/bbbc65f26770ede0e2e93db3daac27fab6daeb4218854e887807b4650a6880fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6c656368656e2f6e6f76612d61637469766974796c6f67)](https://packagist.org/packages/bolechen/nova-activitylog)[![GitHub](https://camo.githubusercontent.com/fa30a5b6ad8527e67e4e9686438d2fff13c12eea32578eb9f73154a9388a3fea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626f6c656368656e2f6e6f76612d61637469766974796c6f67)](https://camo.githubusercontent.com/fa30a5b6ad8527e67e4e9686438d2fff13c12eea32578eb9f73154a9388a3fea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626f6c656368656e2f6e6f76612d61637469766974796c6f67)[![FOSSA Status](https://camo.githubusercontent.com/661a8a28c507322fd9bab7ff2a3986016d5460fcf8d4a530bf05ea82cd4149eb/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246626f6c656368656e2532466e6f76612d61637469766974796c6f672e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbolechen%2Fnova-activitylog?ref=badge_shield)

A tool to activity logger to monitor the users of your Laravel Nova.

- Behind the scenes [spatie/laravel-activitylog](https://github.com/spatie/laravel-activitylog) is used.

[![screenshot](https://raw.githubusercontent.com/bolechen/nova-activitylog/master/docs/screenshot.png?20190308)](https://raw.githubusercontent.com/bolechen/nova-activitylog/master/docs/screenshot.png?20190308)

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require workup/nova-activitylog
```

You can publish the migration with:

```
php artisan vendor:publish --provider="Spatie\ActivityLog\ActivityLogServiceProvider" --tag="activitylog-migrations"
```

*Note*: The default migration assumes you are using integers for your model IDs. If you are using UUIDs, or some other format, adjust the format of the subject\_id and causer\_id fields in the published migration before continuing.

After publishing the migration you can create the `activity_log` table by running the migrations:

```
php artisan migrate
```

You can optionally publish the config file with:

```
php artisan vendor:publish --provider="Spatie\ActivityLog\ActivityLogServiceProvider" --tag="config"
```

You may only want to log actions from nova, put this line to your `.env` files let default logger off.

```
ACTIVITY_LOGGER_ENABLED=false
```

How to use
----------

[](#how-to-use)

Next up, you must register the tool with Nova. This is typically done in the `tools` method of the `NovaServiceProvider`.

```
// in app/Providers/NovaServiceProvder.php

// ...

public function tools()
{
    return [
        // ...
        new \Workup\Nova\ActivityLog\ActivityLog(),
    ];
}
```

Because the backend uses the `spatie/laravel-activitylog` package, you need to let your model use the `Spatie\ActivityLog\Traits\LogsActivity` trait.

Here's an example:

```
use Illuminate\Database\Eloquent\Model;
use Spatie\ActivityLog\Traits\LogsActivity;

class NewsItem extends Model
{
    use LogsActivity;

    protected $fillable = ['name', 'text'];

    protected static $logAttributes = ['name', 'text'];
}
```

For more advanced usage can look at the doc:

Authorizing
-----------

[](#authorizing)

Typical usage of tool authorizing using `->canSee()` or `->canSeeWhen()` when registering the tool will NOT work. To authorize the tool, simply [make and register a Laravel policy](https://laravel.com/docs/10.x/authorization#creating-policies) for the `ActivityLog` model. If a user is not able to view them according to the policy, the tool will not show.

Customize
---------

[](#customize)

If you want to customize the tools. Eg: add filters or cards, you can create your owner resource file extends the original like this:

```
use Workup\Nova\ActivityLog\Resources\ActivityLog;

class Activity extends ActivityLog
{
    public function filters(Request $request)
    {
        return [
            // Your customize filters, etc...
            new Filters\LogsType(),
        ];
    }
}
```

Next up, publish the config file with:

```
php artisan vendor:publish --provider="Workup\\Nova\\ActivityLog\\ToolServiceProvider" --tag="config"
```

And change the `resource` in `config/nova-activitylog.php` to your custom nova resource.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

[![FOSSA Status](https://camo.githubusercontent.com/ec84dc94d3cb45f1a97075871675d10ee987264f84f7d925d32db5ff94ec6c62/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246626f6c656368656e2532466e6f76612d61637469766974796c6f672e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fbolechen%2Fnova-activitylog?ref=badge_large)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~364 days

Total

3

Last Release

949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f39fbc2fe4ec64f1aa658f8b66206ce0a476d16eac277fb809b19a4c4421fcb5?d=identicon)[workup](/maintainers/workup)

---

Top Contributors

[![bolechen](https://avatars.githubusercontent.com/u/195015?v=4)](https://github.com/bolechen "bolechen (35 commits)")[![rslanzi](https://avatars.githubusercontent.com/u/7341598?v=4)](https://github.com/rslanzi "rslanzi (9 commits)")[![Kussie](https://avatars.githubusercontent.com/u/4960791?v=4)](https://github.com/Kussie "Kussie (2 commits)")[![henryavila](https://avatars.githubusercontent.com/u/8429941?v=4)](https://github.com/henryavila "henryavila (2 commits)")[![joeyrush](https://avatars.githubusercontent.com/u/17975028?v=4)](https://github.com/joeyrush "joeyrush (1 commits)")[![godwillcodes](https://avatars.githubusercontent.com/u/33608094?v=4)](https://github.com/godwillcodes "godwillcodes (1 commits)")[![milewski](https://avatars.githubusercontent.com/u/2874967?v=4)](https://github.com/milewski "milewski (1 commits)")[![mtawil](https://avatars.githubusercontent.com/u/700753?v=4)](https://github.com/mtawil "mtawil (1 commits)")[![qskousen](https://avatars.githubusercontent.com/u/8398358?v=4)](https://github.com/qskousen "qskousen (1 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![VGirol](https://avatars.githubusercontent.com/u/18059718?v=4)](https://github.com/VGirol "VGirol (1 commits)")

---

Tags

loglaravelactivitynova

### Embed Badge

![Health badge](/badges/workup-nova-activitylog/health.svg)

```
[![Health](https://phpackages.com/badges/workup-nova-activitylog/health.svg)](https://phpackages.com/packages/workup-nova-activitylog)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[bolechen/nova-activitylog

A tool to activity logger to monitor the users of your Laravel Nova.

99683.9k4](/packages/bolechen-nova-activitylog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
