Download the PHP package orkhanahmadov/laravel-commentable without Composer
On this page you can find all versions of the php package orkhanahmadov/laravel-commentable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download orkhanahmadov/laravel-commentable
More information about orkhanahmadov/laravel-commentable
Files in orkhanahmadov/laravel-commentable
Package laravel-commentable
Short Description Laravel commentable model
License MIT
Homepage https://github.com/orkhanahmadov/laravel-commentable
Informations about the package laravel-commentable
Laravel commentable model
This package provides adding comments to any of your existing Eloquent models.
Requirements
- PHP 7.2 or higher
- Laravel 6 or higher
Installation
You can install the package via composer:
Publish migration and config files:
Config
Config file contains following settings:
table_name
- here you are set table name for migration. Default is "comments".
Usage
Use Orkhanahmadov\LaravelCommentable\Commentable
trait in any of your existing Eloquent model to make it commentable.
To add a comment to your model call comment()
method from model instance.
To add a comment as a user call commentAs()
method from model instance.
Each comment also saves IP address, User-Agent from request.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Orkhan Ahmadov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-commentable with dependencies
illuminate/database Version ^6.0|^7.0|^8.0
illuminate/support Version ^6.0|^7.0|^8.0