jsdecena/comments
Composer 安装命令:
composer require jsdecena/comments
包简介
Laravel Commenting
README 文档
README
Laravel commenting system
How to install
-
Run in your terminal
composer require jsdecena/comments -
Add the base service provider in your
config/app.phpfile like this:
'providers' => [ /* * Package Service Providers... */ Jsdecena\Comments\CommentServiceProvider::class, ],
- Publish files
php artisan vendor:publish
- Edit config. Make sure your user is correctly referenced. Commentable type could be any Model (eg. Post). This is only used in initial seeding.
<?php return [ 'user' => 'App\User', 'commentable_type' => 'App\User' ];
- Migrate database
php artisan migrate
Author
统计信息
- 总下载量: 1.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-09