Download the PHP package finagin/laravel-comment without Composer
On this page you can find all versions of the php package finagin/laravel-comment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download finagin/laravel-comment
More information about finagin/laravel-comment
Files in finagin/laravel-comment
Package laravel-comment
Short Description Comments for Laravel 5.4 and up
License MIT
Homepage https://github.com/finagin/laravel-comment
Informations about the package laravel-comment
Comments for Laravel 5.4 and up
- Installation
- Usage
- License
Installation
This package can be used in Laravel 5.4 or higher. You can install the package via composer:
Now add the service provider in config/app.php file:
You must publish the migration with:
After the migration has been published you must create the settings-tables by running the migrations:
Also you can publish the config file with:
Add CanComment
trait to your User model.
Add Commentable
trait to your commentable model(s).
If you want to have your own Comment Model create a new one and extend my Comment model.
Comment package comes with several modes.
1) If you want to Users can rate your model(s) with comment set canBeRated
to true in your Commentable
model.
2) If you want to approve comments for your commentable models, you must set mustBeApproved
to true in your Commentable
model.
Usage
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-comment with dependencies
illuminate/auth Version ~5.4.0
illuminate/container Version ~5.4.0
illuminate/contracts Version ~5.4.0
illuminate/database Version ~5.4.0