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

ActiveLibrary

imanborumand/laravel-comments
=============================

A package for launching comments in Laravel with the ability to connect to multiple models

013PHP

Since Jan 4Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Comments
================

[](#laravel-comments)

Comments package for Laravel
----------------------------

[](#comments-package-for-laravel)

Using this package, you can easily activate comments for your models.

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

[](#installation)

Install via Composer:

```
composer require imanborumand/laravel-comments

```

Now for publish migrations run:

```
php artisan migrate

```

Also publish the config file with the following command:

```
php artisan vendor:publish --tag="laravel-comment"

```

Usage
=====

[](#usage)

To use, just use trait `Imanborumand\LaravelComments\Traits\HasComment` in your models.

```
use Imanborumand\LaravelComments\Traits\HasComment;

class Article extends Model
{
    use HasComment;
}

```

```
$article = Article::first();

$article->storeComment('this is the first article!');

```

This package will use the authenticated user by default. Of course, if you wish, you can save a favorite user as a comment sender as follows.

```
$article->storeComment('Hello, world!', user: User::first());

```

You can also add a child comment as follows:

```
$article->storeComment('Hello, world!', parent: Comment::find(10));

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![imanborumand](https://avatars.githubusercontent.com/u/29551102?v=4)](https://github.com/imanborumand "imanborumand (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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