PHPackages                             php-soft/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. [Framework](/categories/framework)
4. /
5. php-soft/laravel-comments

ActiveProject[Framework](/categories/framework)

php-soft/laravel-comments
=========================

The Laravel Framework.

51.9k2[1 issues](https://github.com/php-soft/laravel-comments/issues)PHP

Since Oct 29Pushed 10y ago8 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Comments Module
=======================

[](#laravel-comments-module)

[![Build Status](https://camo.githubusercontent.com/e4c2709b439ca8050fee7dc444a67dc5e473cac38c7f64c5be63644655d4ed10/68747470733a2f2f7472617669732d63692e6f72672f7068702d736f66742f6c61726176656c2d636f6d6d656e74732e737667)](https://travis-ci.org/php-soft/laravel-comments)

> This is RESTful APIs

1. Installation
---------------

[](#1-installation)

Install via composer - edit your `composer.json` to require the package.

```
"require": {
    // ...
    "php-soft/laravel-comments": "dev-master",
}
```

Then run `composer update` in your terminal to pull it in. Once this has finished, you will need to add the service provider to the `providers` array in your `app.php` config as follows:

```
'providers' => [
    // ...
    PhpSoft\ArrayView\Providers\ArrayViewServiceProvider::class,
    PhpSoft\Comments\Providers\CommentServiceProvider::class,
]
```

2. Migration and Seeding
------------------------

[](#2-migration-and-seeding)

Now generate the migration:

```
$ php artisan ps-comments:migrate
```

It will generate the migration files. You may now run it with the artisan migrate command:

```
$ php artisan migrate
```

You will want to publish the config using the following command:

```
$ php artisan vendor:publish --provider="PhpSoft\Comments\Providers\CommentServiceProvider"
```

3. Usage
--------

[](#3-usage)

Add routes in `app/Http/routes.php`

```
Route::group(['middleware'=>'auth'], function() {

    Route::get('/comments/{url}', '\PhpSoft\Comments\Controllers\CommentController@index')->where('url', '.*');
    Route::post('/comments/{url}', '\PhpSoft\Comments\Controllers\CommentController@store')->where('url', '.*');
    Route::patch('/comments/{id}', '\PhpSoft\Comments\Controllers\CommentController@update');
    Route::delete('/comments/{id}', '\PhpSoft\Comments\Controllers\CommentController@destroy');
});
```

***You can remove middlewares if your application don't require check authenticate and permission!***

3. Get comment's user
---------------------

[](#3-get-comments-user)

Sometimes you need to get users' information while viewing other comments. You can easily use it by:

```
$user = $comment->users();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![huytbt](https://avatars.githubusercontent.com/u/7126782?v=4)](https://github.com/huytbt "huytbt (9 commits)")[![gghoantt](https://avatars.githubusercontent.com/u/13842780?v=4)](https://github.com/gghoantt "gghoantt (1 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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