PHPackages                             hrm/laravel-comment - 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. hrm/laravel-comment

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

hrm/laravel-comment
===================

01Blade

Since Dec 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tanle25/hrm-comment)[ Packagist](https://packagist.org/packages/hrm/laravel-comment)[ RSS](/packages/hrm-laravel-comment/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![introduce](introduce.png)](introduce.png)

Yêu cầu
=======

[](#yêu-cầu)

[Livewire](https://laravel-livewire.com/docs/2.x/installation)

[Tailwind](https://tailwindcss.com/docs/installation)

Cài đặt
=======

[](#cài-đặt)

```
composer require hrm/laravel-comment
```

Publish
-------

[](#publish)

```
php artisan vendor:publish --tag=comments
```

Migrations
----------

[](#migrations)

```
php artisan migrate
```

Thêm Trait vào Model

`use HasComments;`

Thêm helper vào `composer.json` như mẫu dưới

```
 "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        },
        "files": [
            "app/Helper/hrm_time_helper.php"
        ]
    },
```

Cách dùng
---------

[](#cách-dùng)

### Thêm componnent

[](#thêm-componnent)

Thêm commponent sau vào nơi hiển thị comment `$post` là model của bạn

``

Thêm `@stack('script)` vào layout của bạn

### Thay đổi định dạng thời gian comment

[](#thay-đổi-định-dạng-thời-gian-comment)

mở file `app/Helper/hrm_time_helper.php`

thay đổi nội dung trong function `hrmFormatTime()`

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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://avatars.githubusercontent.com/u/81272790?v=4)[tanle25](/maintainers/tanle25)[@tanle25](https://github.com/tanle25)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/hrm-laravel-comment/health.svg)

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

###  Alternatives

[web3p/ethereum-tx

Ethereum transaction library in PHP.

193379.0k25](/packages/web3p-ethereum-tx)[webbycrown/blog-for-bagisto

Blog for Bagisto

268.4k](/packages/webbycrown-blog-for-bagisto)

PHPackages © 2026

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