{"repo":"iooe/laravel-comments","free":true,"listed":false,"github":"https://github.com/iooe/laravel-comments","clone":"git clone https://github.com/iooe/laravel-comments.git","description":"Comments system for your Laravel application. Features: can be used to comment on any model, HTML filter customization (HTMLPurifier), API, comment rating, replies, events, auth rules ...","language":"PHP","stars":119,"topics":["laravel","php","package","comments"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"README на русском laraComments This package can be used to comment on any model you have in your application. Features - [x] View comments - [x] Create comment - [x] Delete comment - [x] Edit comment - [x] Reply to comment - [x] Authorization rules with customization - [x] View customization - [x] Dispatch events - [x] Likes Dislikes Comment rating - [x] API for basic function: get, update, delete, create - [x] HTML filter customization (using HTMLPurifier) Upgrade guides → + From 2.x.x to 3.0 Requirements - php 7.1 + - laravel 5.6 + - Your application should contain auth module. - Laravel 6.x: https://laravel.com/docs/6.x/authentication - Laravel 5.6: https://laravel.com/docs/5.6/authentication Installation 1. Run migrations We need to create the table for comments. ### 2. Add Commenter trait to your User model Add the Commenter trait to your User model so that you can retrieve the comments for a user: ### 3. Create Comment model ### 4. Add Commentable trait and the ICommentable interface to models Add the Commentable trait and the ICommentable interface to the model for which you want to enable comments for: ### 5. Custom comment policy (optional) If you need, you can overwrite default comment policy class: Then register policy in AuthServiceProvider : And add policy prefix to comments.php config ### Publish Config & configure (optional) In the config file you can specify: - where is your User model located; the default is \\App\\User::class - where is your Comment model loca","default_branch":null,"files":null,"tree":[],"storefront":"/r/iooe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iooe/laravel-comments/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}