PHPackages                             axitdev/laravelfastcomments - 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. axitdev/laravelfastcomments

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

axitdev/laravelfastcomments
===========================

Simple way to add comments to your Laravel Eloquent models

v1.0.0(7y ago)064MITPHPPHP ^7.1

Since May 15Pushed 7y agoCompare

[ Source](https://github.com/axitdev/laravelfastcomments)[ Packagist](https://packagist.org/packages/axitdev/laravelfastcomments)[ Docs](https://github.com/axitdev/laravelfastcomments)[ RSS](/packages/axitdev-laravelfastcomments/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Simple way to add comments to your Laravel Eloquent models
==========================================================

[](#simple-way-to-add-comments-to-your-laravel-eloquent-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6f738ce5ed55447295bde51fa1505e95892b3392f288194d0ab731d999b492c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617869746465762f6c61726176656c66617374636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axitdev/laravelfastcomments)[![Build Status](https://camo.githubusercontent.com/ad83bd636363ca5a00cd15343ff52b8eae487979f2dbf059c1bbbeb4c69d0dbb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617869746465762f6c61726176656c66617374636f6d6d656e74732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/axitdev/laravelfastcomments)[![Quality Score](https://camo.githubusercontent.com/88022af6b4fe96b8481a05bdeadaf647df170792189271017a6789e77b40544b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617869746465762f6c61726176656c66617374636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/axitdev/laravelfastcomments)[![Total Downloads](https://camo.githubusercontent.com/0361389ceeec9ea1fdb752926d8e9ef9518c2cbe2bc3ebef8f171ea7420b28dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617869746465762f6c61726176656c66617374636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axitdev/laravelfastcomments)

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

[](#installation)

You can install the package via composer:

```
composer require axitdev/laravelfastcomments
```

Publish the migration:

```
php artisan vendor:publish --provider="Axitdev\LaravelFastComments\LaravelFastCommentsServiceProvider"
```

And don't forget to migrate:

```
php artisan migrate
```

Usage
-----

[](#usage)

Just add `HasComments` trait to the eloquent model.

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

### Creating Comments

[](#creating-comments)

To create new comment you can use `comment` method.

```
$post = Post::find(1);

$post->comment('Comment text');
```

By default `comment` method will create a comment with `user_id` from `auth()->user()->id`, but you can create comment as another user.

```
$user = User::find(1);
$post = Post::find(1);

$post->comment('Comment text', $user);
```

### Retrieving Comments

[](#retrieving-comments)

To get list of comments you can use `comments` method.

```
$post = Post::find(1);

$post->comments;
```

### 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.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Oleksii Ivanov](https://github.com/axitdev)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1522498c8dc42feb1b52035b75e3091c2c3207f5cb667f4ab48332f0563d81ae?d=identicon)[axitdev](/maintainers/axitdev)

---

Top Contributors

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

---

Tags

axitdevlaravelfastcomments

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axitdev-laravelfastcomments/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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