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

ActiveLibrary

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 1mo ago

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

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

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/affea68f851e18fe3af6ef51bc47ba3ad7c664de328b46ca7de7d5cf0cb4b051?d=identicon)[tanle25](/maintainers/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)
```

PHPackages © 2026

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