jsdecena / comments
Laravel Commenting
Installs: 1 034
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.1.3
- ext-json: *
- doctrine/dbal: ^2.7
- illuminate/support: ^5.6
- jsdecena/baserepo: ^1.0
- league/fractal: ^0.17.0
- vlucas/phpdotenv: ~2.2
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: ~1.0
- orchestra/database: 3.7.x@dev
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-12-09 23:06:23 UTC
README
Laravel commenting system
How to install
-
Run in your terminal
composer require jsdecena/comments
-
Add the base service provider in your
config/app.php
file 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