https://github.com/jsdecena/comments
Laravel Comment Package
https://github.com/jsdecena/comments
commenting comments laravel laravel-framework lumen lumen-php-framework
Last synced: 6 months ago
JSON representation
Laravel Comment Package
- Host: GitHub
- URL: https://github.com/jsdecena/comments
- Owner: jsdecena
- License: mit
- Created: 2018-10-09T01:50:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T08:44:56.000Z (over 7 years ago)
- Last Synced: 2025-01-29T20:19:05.162Z (12 months ago)
- Topics: commenting, comments, laravel, laravel-framework, lumen, lumen-php-framework
- Language: PHP
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JSD Comments
#### Laravel commenting system
[](https://travis-ci.org/jsdecena/comments)
[](https://packagist.org/packages/jsdecena/comments)
[](https://packagist.org/packages/jsdecena/comments)
[](https://packagist.org/packages/jsdecena/comments)
## How to install
- Run in your terminal `composer require jsdecena/comments`
- Add the base service provider in your `config/app.php` file like this:
```php
'providers' => [
/*
* Package Service Providers...
*/
Jsdecena\Comments\CommentServiceProvider::class,
],
```
- Publish files
```php
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
'App\User',
'commentable_type' => 'App\User'
];
```
- Migrate database
```php
php artisan migrate
```
# Author
[Jeff Simons Decena](https://jsdecena.me)