sinclairt/commentable
Composer 安装命令:
composer require sinclairt/commentable
包简介
Add comments to objects
README 文档
README
Installation
composer require sinclairt/commentable
Add Sinclair\Commentable\CommentableServiceProvider::class to config\app.php
php artisan vendor:publish
Run the migrations php artisan migrate
Usage
Set your user class in the commentable config file.
Use the trait use Commentable; in your model. now you can create comments against objects in your app.
Please note that the relationship is now a polymorphic one-to-many, a comment can belong to any ONE object, and an object can have MANY comments. It is no longer many-to-many.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-29