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

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

elsayed85/laravel-comments
==========================

Associate comments and reactions with Eloquent models

v1.0.0(3y ago)17MITPHPPHP ^8.1

Since Jan 18Pushed 3y agoCompare

[ Source](https://github.com/elsayed85/laravel-comments)[ Packagist](https://packagist.org/packages/elsayed85/laravel-comments)[ Docs](https://github.com/spatie/laravel-comments)[ GitHub Sponsors](https://github.com/spatie)[ RSS](/packages/elsayed85-laravel-comments/feed)WikiDiscussions main Synced yesterday

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

Associate comments and reactions with Eloquent models
=====================================================

[](#associate-comments-and-reactions-with-eloquent-models)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b114a9ddac0e3f6c267b4df38ed58771e2347ca1e6421b752108a8426d294f67/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-comments)[![GitHub Tests Action Status](https://camo.githubusercontent.com/06137f903469084d84bb14f699022a090e2bff1868432cb74b3fa3833960a846/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d636f6d6d656e74732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/spatie/laravel-comments/actions?query=workflow%3Arun-tests+branch%3Amain)[![PHPStan](https://github.com/spatie/laravel-comments/actions/workflows/phpstan.yml/badge.svg)](https://github.com/spatie/laravel-comments/actions/workflows/phpstan.yml)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f249e618a206bad237ce30b0a3780cd5a6f246e7459d728521028d1881e2e6fe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7370617469652f6c61726176656c2d636f6d6d656e74732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/spatie/laravel-comments/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0128a81e2476d336faa0c091769f1ecfa6589fa8241f0561a84c10042988bf4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d636f6d6d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-comments)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/6a1b381118e94ee707b9aa0f88ade740d62f7fa30066a010defee1a012eb433b/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d636f6d6d656e74732e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-comments)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/laravel-comments
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-comments_without_prefix-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-comments_without_prefix-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="example-views"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
$laravel-comments = new Spatie\Comments();
echo $laravel-comments->echoPhrase('Hello, Spatie!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

1263d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f6465ef2e90074d5a323bf893bb1ab9a7b5af7bf61d1001f85a8448d8fb257d?d=identicon)[elsayed851999](/maintainers/elsayed851999)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (18 commits)")[![elsayed85](https://avatars.githubusercontent.com/u/41492621?v=4)](https://github.com/elsayed85 "elsayed85 (2 commits)")

---

Tags

spatielaravellaravel-comments

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-data

Create unified resources and data transfer objects

1.8k35.2M973](/packages/spatie-laravel-data)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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