asp/commenter
Composer 安装命令:
composer require asp/commenter
包简介
API for comment app
README 文档
README
Installation: Add this to "providers" array in config/app.hp 'asp\commenter\CommenterServiceProvider', And this to "aliases" array in config/app.php 'Commenter' => 'asp\commenter\Helpers\Commenter', Run "Composer update" Run "php artisan vendor:publish" Set the api key in config/CommenterConfig.php Usage: You must have a username set in session by the key 'user' to enable commenting and rplying Just add following return a 'comments' variable obtained as shown below: $view= \Commenter::loadComment(); return \View::make('welcome')->with('comments',$view); Then in your view, insert the following snippet wherever you want to render the comments: @if(isset($comments)) @endif
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-30