jsdecena/comments
JSD Comments
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
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
631,580,251
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
404,034,618
608
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
384,821,166
4,658