Skip to content

yuges-code/laravel-commentable

Repository files navigation

Build
GitHub Branch Check Runs GitHub Tests Action Status
Project
GitHub Release Packagist Downloads GitHub License Packagist Stars Packagist Dependency Version
Quality

Laravel Commentable

🗯️ Package for easily attaching comments to Laravel eloquent models


💿 Installation

→ Composer

You can install the package via composer:

composer require yuges-code/laravel-commentable

→ Publishing Config

Publishing the config file (config/commentable.php) is optional:

php artisan vendor:publish --provider="Yuges\Commentable\Providers\CommentableServiceProvider" --tag="commentable-config"

→ Publishing Migrations

You need to publish the migration to create the comments table:

php artisan vendor:publish --provider="Yuges\Commentable\Providers\CommentableServiceProvider" --tag="commentable-migrations"

→ Running Migrations

After that, you need to run migrations:

php artisan migrate

🧪 Running Tests

→ PHPUnit tests

To run tests, run the following command:

composer test

⚖️ License

The MIT License (MIT). Please see License File for more information.


🙆🏼‍♂️ Authors Information

Created in 2025 by:

About

Package for easily attaching comments to Laravel eloquent models 🗯️

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages