PHPackages                             sagor-roy/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. sagor-roy/comments

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

sagor-roy/comments
==================

Simple comment system for Laravel 13 with AJAX support

1.0.0(3mo ago)00MITBladePHP ^8.3

Since Apr 13Pushed 3mo agoCompare

[ Source](https://github.com/sagor-roy/laravel-comments)[ Packagist](https://packagist.org/packages/sagor-roy/comments)[ RSS](/packages/sagor-roy-comments/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SagorRoy Comments
=================

[](#sagorroy-comments)

A simple, lightweight comment system for Laravel 13 with AJAX support.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 13.x

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

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require sagor-roy/comments
```

### 2. Publish Assets

[](#2-publish-assets)

```
# Publish all assets
php artisan vendor:publish --provider="SagorRoy\Comments\CommentServiceProvider"

# Or individually:
php artisan vendor:publish --tag=comments-migrations
php artisan vendor:publish --tag=comments-config
php artisan vendor:publish --tag=comments-views
php artisan vendor:publish --tag=comments-assets
```

### 3. Run Migrations

[](#3-run-migrations)

```
php artisan migrate
```

Usage
-----

[](#usage)

### 1. Make Model Commentable

[](#1-make-model-commentable)

Add the `Commentable` trait to any model you want to make commentable:

```
// app/Models/Article.php
