Download the PHP package mannysoft/laravel-comment without Composer
On this page you can find all versions of the php package mannysoft/laravel-comment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mannysoft/laravel-comment
More information about mannysoft/laravel-comment
Files in mannysoft/laravel-comment
Package laravel-comment
Short Description Just another comment system for your awesome Laravel project.
License MIT
Homepage https://github.com/actuallymab/laravel-comment
Informations about the package laravel-comment
Laravel Comment
Just another comment system for your awesome Laravel project.
Version Compatibility
Laravel | Laravel Comment |
---|---|
5.0.x | 0.1.x |
5.1.x | 0.1.x |
5.2.x | 0.1.x |
5.3.x | 0.2.x |
5.4.x | 0.3.x |
For >5.5
you can use ^1.0.0
version.
Install
Via Composer
If you don't use auto-discovery, or using Laravel version < 5.5 Add service provider to your app.php file
Publish configurations and migrations, then migrate comments table.
Add CanComment
trait to your User model.
Add Commentable
interface and HasComments
trait to your commentable model(s).
If you want to have your own Comment Model create a new one and extend my Comment model.
and dont forget to update the model name in the config/comment.php
file.
Comment package comes with several modes.
1- If you want to users can rate your commentable models;
2- If you want to approve comments for your commentable models;
3- Sometimes you don't want to approve comments for all users;
Usage
Tip: You might want to look at the tests/CommentTest.php file to check all potential usages.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Mehmet Aydın Bahadır
- All Contributors
License
The MIT License (MIT). Please see License File for more information.