PHPackages                             uzbek/nova-comments - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. uzbek/nova-comments

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

uzbek/nova-comments
===================

A Laravel Nova resource for commenting on model.

5.0.0(1y ago)015MITPHPPHP &gt;=8.0

Since Apr 24Pushed 1y agoCompare

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

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

A commenting resource tool for Nova apps
========================================

[](#a-commenting-resource-tool-for-nova-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/77b3db8f8046e6ed48e47107d213d0b04b50573d4e14e0d8c9828bb1f6acf3da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757a62656b2f6e6f76612d636f6d6d656e74732e737667)](https://packagist.org/packages/uzbek/nova-comments)[![Total Downloads](https://camo.githubusercontent.com/ebc2a4fa850348694d488f11069caa186974f323420510d3768fbea140dd7025/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f757a62656b2f6e6f76612d636f6d6d656e74732e737667)](https://packagist.org/packages/uzbek/nova-comments)

This package contains an inline commenting form for any resource to easily add comments. Think a simple version of Disqus for Nova!

###### Commenter Tool

[](#commenter-tool)

[![screenshot of the commenter resource tool](https://raw.githubusercontent.com/professor93/nova-comments/master/screenshots/commenter.png)](https://raw.githubusercontent.com/professor93/nova-comments/master/screenshots/commenter.png)

###### Simple Comment Panel

[](#simple-comment-panel)

[![screenshot of the comments panel](https://raw.githubusercontent.com/professor93/nova-comments/master/screenshots/comments-panel.png)](https://raw.githubusercontent.com/professor93/nova-comments/master/screenshots/comments-panel.png)

Requirements
------------

[](#requirements)

This Nova resource tool requires Nova 4.0 or higher.
For older version of Nova, use the tagged version [1.0.2](https://github.com/professor93/nova-comments/releases/tag/1.0.2)

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

[](#installation)

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

```
composer require uzbek/nova-comments
```

Next, we need to run migrations. Auto-discovery of this package's service provider helps with that!

```
php artisan migrate
```

And lastly, any model that you want to have comments needs the `Commentable` trait added to it.

```
use Uzbek\NovaComments\Commentable;

class Post extends Model
{
    use Commentable;

    // ...
}
```

If you would like to publish the config for this package, run:

```
php artisan vendor:publish
```

And choose the provider for this package: `Uzbek\NovaComments\NovaCommentsServiceProvider`

This package requires that it has a commenter, which is simply a `User`. Nova Comments automatically defaults to the `App\Nova\User` resource, but can easily be changed in the publishable config file.

Usage
-----

[](#usage)

There are two components that ship with this package, the `Commenter` and a `CommentsPanel`.

### Commenter

[](#commenter)

The first, and most useful, component is the `Commenter`. It is a resource tool that allows you to insert a commenting panel directly onto any Nova resource. This panel allows you to add a comment directly to a resource without needing to create one from the respective create view. The newly created comments show up below the commenting form with live updating.

Simply add the `Uzbek\NovaComments\Commenter` resource tool in your Nova resource:

```
namespace App\Nova;

use Uzbek\NovaComments\Commenter;

class Post extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            new Commenter(),

            // ...
        ];
    }
}
```

Now you can comment from the detail view of any resource you've attached the `Commenter` to! Happy commenting!

### Comments Panel

[](#comments-panel)

As a convenience, a prebuilt comments panel has been created for you. All you need to do is simply add it to your resource and enjoy the pre-built goodness.

```
namespace App\Nova;

use Uzbek\NovaComments\Commenter;

class Post extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            new CommentsPanel(),

            // ...
        ];
    }
}
```

Of course you are completely free to create your own comments panel, but to get up and running quickly, we recommend using this panel.

### Sidebar Navigation

[](#sidebar-navigation)

Occasionally you may want to hide comments from the sidebar. You can easily do this by setting the respective config value to false. Make sure to first publish the configs.

```
'available-for-navigation' => false
```

### Pagination caveat

[](#pagination-caveat)

Due to an limitation in how Nova paginates results, there is currently no way to set the `perPage` value for the number of comments that will display at a time from a configuration value. Nova's default value is 5 per page. If you would like to set this to a different value, such as 25, we recommend you extend the `Commenter` and set this value with the follwing code:

```
use Uzbek\NovaComments\Commenter as NovaCommenter;

class Commenter extends NovaCommenter
{
    /**
     * The number of resources to show per page via relationships.
     *
     * @var int
     */
    public static $perPageViaRelationship = 25;
}
```

Then use this class instead of the default `Commenter` class within your resources.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

If you discover any security related issues, please email  or  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Brandon Ferens](https://github.com/brandonferens)

Sponsorship
-----------

[](#sponsorship)

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more [about us](https://kirschbaumdevelopment.com) or [join us](https://careers.kirschbaumdevelopment.com)!

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~405 days

Recently: every ~506 days

Total

6

Last Release

556d ago

Major Versions

1.0.2 → 4.0.02022-11-12

4.0.1 → 5.0.02024-11-08

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

4.0.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![brandonferens](https://avatars.githubusercontent.com/u/1819546?v=4)](https://github.com/brandonferens "brandonferens (37 commits)")[![centgart](https://avatars.githubusercontent.com/u/126847?v=4)](https://github.com/centgart "centgart (20 commits)")[![chrillep](https://avatars.githubusercontent.com/u/1267931?v=4)](https://github.com/chrillep "chrillep (14 commits)")[![eugenefvdm](https://avatars.githubusercontent.com/u/1836436?v=4)](https://github.com/eugenefvdm "eugenefvdm (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![professor93](https://avatars.githubusercontent.com/u/5443574?v=4)](https://github.com/professor93 "professor93 (3 commits)")[![adammparker](https://avatars.githubusercontent.com/u/5186174?v=4)](https://github.com/adammparker "adammparker (2 commits)")[![pasxel](https://avatars.githubusercontent.com/u/1814849?v=4)](https://github.com/pasxel "pasxel (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/uzbek-nova-comments/health.svg)

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

###  Alternatives

[optimistdigital/nova-sortable

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

2872.1M6](/packages/optimistdigital-nova-sortable)[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)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[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)
