Download the PHP package betalabs/laravel-comment without Composer
On this page you can find all versions of the php package betalabs/laravel-comment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download betalabs/laravel-comment
More information about betalabs/laravel-comment
Files in betalabs/laravel-comment
Package laravel-comment
Short Description Just another comment system for laravel projects.
License
Informations about the package laravel-comment
Laravel Comment
Just another comment system for laravel projects.
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 |
5.5.x | 0.4.x |
5.6.x | 0.5.x |
5.7.x | 0.6.x |
Install
Via Composer
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, or using Laravel version < 5.5 Add service provider to your app.php file
Publish & Migrate comments table.
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.
3- You don't want to approve comments for all users (think this as you really want to approve your own comments?). So add your User
model an isAdmin
method and return it true if user is admin.
Usage
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.