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

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

bolechen/nova-activitylog
=========================

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

v0.5.1(1y ago)99683.9k—9.4%30[1 issues](https://github.com/bolechen/nova-activitylog/issues)4MITPHP

Since Mar 7Pushed 1y ago7 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (19)Used By (4)

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 bolechen/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 \Bolechen\NovaActivitylog\NovaActivitylog(),
    ];
}
```

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 Bolechen\NovaActivitylog\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="Bolechen\\NovaActivitylog\\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

50

—

FairBetter than 96% of packages

Maintenance46

Moderate activity, may be stable

Popularity54

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.9% 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 ~130 days

Recently: every ~151 days

Total

18

Last Release

405d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelnovaloglaravelactivitynova

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/bolechen-nova-activitylog/health.svg)](https://phpackages.com/packages/bolechen-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)

PHPackages © 2026

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