PHPackages                             honeybadger-io/nova-honeybadger - 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. honeybadger-io/nova-honeybadger

AbandonedArchivedLibrary

honeybadger-io/nova-honeybadger
===============================

Show Honeybadger errors within Laravel Nova.

v0.0.1(7y ago)58871[1 PRs](https://github.com/honeybadger-io/nova-honeybadger/pulls)MITPHPPHP &gt;=7.1.0

Since Sep 20Pushed 3y ago4 watchersCompare

[ Source](https://github.com/honeybadger-io/nova-honeybadger)[ Packagist](https://packagist.org/packages/honeybadger-io/nova-honeybadger)[ RSS](/packages/honeybadger-io-nova-honeybadger/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (5)Versions (5)Used By (0)

Honeybadger Tool for Laravel Nova
=================================

[](#honeybadger-tool-for-laravel-nova)

This package displays [Honeybadger](https://www.honeybadger.io/for/laravel/?utm_source=github&utm_medium=readme&utm_campaign=laravel&utm_content=Honeybadger) errors for resources in Laravel Nova. By default, it shows all of the exceptions each user has encountered in your Laravel app.

[![screenshot](./screenshot.png)](./screenshot.png)

With [custom context](#defining-custom-context-using-resource-attributes) and [search strings](#custom-search-string), you can display errors for any resource.

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

[](#installation)

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

```
composer require honeybadger-io/nova-honeybadger
```

Next, define your Honeybadger Project ID and [Authentication Token](https://docs.honeybadger.io/api/data.html) inside your `config/services.php` file, like this:

```
'honeybadger' => [
    'auth_token' => env('HONEYBADGER_AUTH_TOKEN'),
    'project_id' => env('HONEYBADGER_PROJECT_ID')
]
```

You can get your Project ID from the URL of your Honeybadger project:

[https://app.honeybadger.io/projects/\[ID\]/faults](https://app.honeybadger.io/projects/%5BID%5D/faults)

Your Authentication Token is available on [your Honeybadger profile page](https://app.honeybadger.io/users/edit) (Note: this is different from your project's API key).

Usage
-----

[](#usage)

To display the Honeybadger faults that are associated with a given Nova resource, you need to add the Honeybadger Resource Tool to your resource.

To display all errors that are associated with a given Laravel User, all you need to do is add the resource tool to the `fields` method of your User resource.

For example, in your `app/Nova/User.php` file:

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        // Your other fields

        new \HoneybadgerIo\NovaHoneybadger\Honeybadger,

    ];
}
```

This will automatically search Honeybadger for faults with the resource's User ID.

**Note:** Make sure you also [configure Honeybadger to identify users in Laravel](https://docs.honeybadger.io/lib/php/integration/laravel.html#identifying-users).

### Defining Custom Context Using Resource Attributes

[](#defining-custom-context-using-resource-attributes)

If you want to search for a different context key/value pair, you can create the resource tool using the `fromContextKeyAndAttribute` method. This will tell Honeybadger to search for a specific context attribute and use the resource's column as the value.

For example, let's filter our Honeybadger faults by using the resource's email attribute:

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        // Your other fields

        \HoneybadgerIo\NovaHoneybadger\Honeybadger::fromContextKeyAndAttribute('context.user.email', 'email'),

    ];
}
```

### Defining Custom Context

[](#defining-custom-context)

To search your Honeybadger faults using a custom context key and a static value, you may use the `fromContextKeyAndValue` method. It works similar to `withContextKeyAndAttribute`, but will use the second parameter as a static string, instead of looking it up as a resource attribute.

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        // Your other fields

        \HoneybadgerIo\NovaHoneybadger\Honeybadger::fromContextKeyAndAttribute('context.user.email', 'static.value@honeybadger.io'),

    ];
}
```

### Custom Search String

[](#custom-search-string)

To get full control over your Honeybadger search string, you may use the `fromSearchString` method on the resource tool. This let's you define a completely custom search string, that will be used to lookup your Honeybadger faults.

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        // Your other fields

        \HoneybadgerIo\NovaHoneybadger\Honeybadger::fromSearchString('-tag:wip -tag:pending environment:"production"'),

    ];
}
```

If you only want to append a custom search string to your context attributes, you may use the `withSearchString` method in combination with the other methods:

```
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        // Your other fields

        (new \HoneybadgerIo\NovaHoneybadger\Honeybadger)->withSearchString('-environment:"production"'),

    ];
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.5% 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

Unknown

Total

1

Last Release

2791d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/5ede9dfcfa1a592d730f5af05505980a652fc6f96d3a182f0dbe3f2a14db852b?d=identicon)[ben.curtis](/maintainers/ben.curtis)

![](https://www.gravatar.com/avatar/505c3ee7241d623c7d42f9abdb85e274d009b3698a96e49c8ecbff9bd05c4f76?d=identicon)[subzero10](/maintainers/subzero10)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (23 commits)")[![subzero10](https://avatars.githubusercontent.com/u/5813382?v=4)](https://github.com/subzero10 "subzero10 (7 commits)")[![joshuap](https://avatars.githubusercontent.com/u/474649?v=4)](https://github.com/joshuap "joshuap (6 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (2 commits)")[![shalvah](https://avatars.githubusercontent.com/u/14361073?v=4)](https://github.com/shalvah "shalvah (2 commits)")

---

Tags

error-handlingerror-monitoringhoneybadgerlaravelnovaphplaravelnovahoneybadger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/honeybadger-io-nova-honeybadger/health.svg)

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

###  Alternatives

[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

136301.3k1](/packages/laravel-nova-log-viewer)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)[stepanenko3/nova-command-runner

Laravel Nova tool for running Artisan and bash(shell) commands.

36983.0k](/packages/stepanenko3-nova-command-runner)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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