PHPackages                             artsites/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. artsites/comments

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

artsites/comments
=================

Comments functionality for Laravel and Nova.

1.0.0(2y ago)0182MITPHPPHP &gt;=8.0

Since May 28Pushed 2y agoCompare

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

READMEChangelog (9)DependenciesVersions (10)Used By (0)

ArtSites/Comments
=================

[](#artsitescomments)

### Installation

[](#installation)

```
composer require artsites/comments
```

### Migration

[](#migration)

```
php artisan migrate
```

### Publish

[](#publish)

```
php artisan vendor:publish --provider="ArtSites\Comments\ServiceProvider" --tag="config"
```

```
php artisan vendor:publish --provider="ArtSites\Comments\ServiceProvider" --tag="js"
```

### Optional publish

[](#optional-publish)

> If you want to customize views, you can publish views to `/resources/views/vendor/comments`

```
php artisan vendor:publish --provider="ArtSites\Comments\ServiceProvider" --tag="views"
```

> Also, you can publish nova resource to `/app/Nova/Comment.php` for adding new features fields

```
php artisan vendor:publish --provider="ArtSites\Comments\ServiceProvider" --tag="nova-resource"
```

> **Warning**Don't forget replace namespace

### Config

[](#config)

> Path `/config/comments.php`

> `show_more_count` - comments count when click show more button

### ENV

[](#env)

> This package use Google reCAPTCHA V3

> For creating keys go to:

> Please add generated keys to your env:

```
RECAPTCHA_SITE_KEY

RECAPTCHA_SECRET_KEY
```

### Usage

[](#usage)

> In `model` that should have comments add trait

```
use ArtSites\Comments\Models\Traits\HasComments;

class SomeModel extends Model
{
  use HasComments;
  ...
}
```

> Add a `$comments` variable to the `controller` that returns the view

```
$model = Model::first();

return view('***', [
    ...
    'model' => $model,
    'comments' => $model->getComments(),
]);
```

> For adding template on view, you need add:

```
@include('comments::layout', ['comments' => $comments, 'model' => $model])
```

> And the final touch, add `HasMany` relation to Nova `resource`

```
use Laravel\Nova\Fields\HasMany;

HasMany::make('Comments', 'comments', \ArtSites\Comments\Nova\Comment::class),
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~52 days

Recently: every ~96 days

Total

9

Last Release

1032d ago

Major Versions

0.0.8 → 1.0.02023-07-18

### Community

Maintainers

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

---

Top Contributors

[![dprhmk](https://avatars.githubusercontent.com/u/68992437?v=4)](https://github.com/dprhmk "dprhmk (15 commits)")

---

Tags

laravelcommentsnova

### Embed Badge

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

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

###  Alternatives

[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)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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