Download the PHP package alexwenzel/laravel-commentary without Composer
On this page you can find all versions of the php package alexwenzel/laravel-commentary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexwenzel/laravel-commentary
More information about alexwenzel/laravel-commentary
Files in alexwenzel/laravel-commentary
Package laravel-commentary
Short Description A package for Laravel to post a comment on an article and to manage them.
License
Informations about the package laravel-commentary
Laravel commentary
A package for Laravel to post a comment on an article and to manage them.
Description
This package comes with 3 parts:
- comment form
- comment listing
- comment management
The form allows anyone to post a comment on something. It can be applied to any view. The same goes for ther comment listing.
The comment management allows someone to
- approve
- unapprove
- edit
- trash
comments.
Screenshots
Form
Management
Implementation
ServiceProvider
'Alexwenzel\LaravelCommentary\LaravelCommentaryServiceProvider'
Namespace
The package registers the following namespace: laravel-commentary
Migration
`
The migration creates a table named: laravel-commentary-comments
Comment controllers
There is a controller to manage the comments, and there is a controller for the frontend stuff. The management controller is best behind a secured route.
Include something like the following line in your routes.php:
``
If you need to customize the management section, override the views within your project.
Comment form
To display the comment form, include something like the following line in your view:
``
Register the controller first, otherwise you will get errors.
Comment listing
To display the comments of an entity, include something like the following line in your view:
``
Register the controller first, otherwise you will get errors.
The following conditions are applied to the comment listing. Comments:
- have to be approved
- are ordered by creation time
Comment controller behaviour
The behaviour can be customized by overriding CommentaryActionHandler class.
Events
The following events are fired:
`
Assets
This package comes with default styles.
`
Localization
Read here: http://laravel.com/docs/localization#overriding-package-language-files