samk369 / laravel-commentable
Polymorphic threaded comments for Laravel
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
Open Issues: 0
pkg:composer/samk369/laravel-commentable
Requires
- php: >=5.5.9
- baum/baum: ~1.1
This package is auto-updated.
Last update: 2025-10-29 02:56:59 UTC
README
Laravel Commentable adds polymorphic threaded comments to Laravel 7 and above. (based on dead slynova/laravel-commentable)
This package use Nested Set pattern with Baum.
More information about Nested Set
Table of Contents
Requirements
- As Laravel 7.x require PHP 7.0+, we required the same version.
Getting Started
-
Require the package with Composer.
$ composer require samk369/laravel-commentable
-
Add the package to your application service providers in
config/app.php.'providers' => [ Illuminate\Foundation\Providers\ArtisanServiceProvider::class, Illuminate\Auth\AuthServiceProvider::class, ... samk369\Commentable\ServiceProvider::class, ],
-
Publish the package's migrations to your application and migrate.
$ php artisan vendor:publish --provider="samk369\Commentable\ServiceProvider" --tag="migrations" $ php artisan migrate
Example
TODO
Change Logs
Nothing has been changed from the first release.
Contribution Guidelines
Support follows PSR-2 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.